Use it:Quote:
i did this not working... i am using sql 2012
Error:Code:SET IDENTITY INSERT [telecaster8.1].dbo.[character] ON INSERT INTO [Telecaster7.4].dbo.[character] ( [pet] [int] NOT NULL, [main_title] [int] NOT NULL, [sub_title_0] [int] NOT NULL, [sub_title_1] [int] NOT NULL, [sub_title_2] [int] NOT NULL, [sub_title_3] [int] NOT NULL, [sub_title_4] [int] NOT NULL, [remain_title_time] [int] NOT NULL, [arena_point] [int] NOT NULL, [arena_block_time] [datetime] NOT NULL, [arena_penalty_count] [int] NOT NULL, [arena_penalty_dec_time] [datetime] NOT NULL, [arena_mvp_count] [int] NOT NULL, [arena_record_0_0] [int] NOT NULL, [arena_record_0_1] [int] NOT NULL, [arena_record_1_0] [int] NOT NULL, [arena_record_1_1] [int] NOT NULL, [arena_record_2_0] [int] NOT NULL, [arena_record_2_1] [int] NOT NULL, [alias] [nvarchar](61) NOT NULL, ( SELECT ( [pet] [int] NOT NULL, [main_title] [int] NOT NULL, [sub_title_0] [int] NOT NULL, [sub_title_1] [int] NOT NULL, [sub_title_2] [int] NOT NULL, [sub_title_3] [int] NOT NULL, [sub_title_4] [int] NOT NULL, [remain_title_time] [int] NOT NULL, [arena_point] [int] NOT NULL, [arena_block_time] [datetime] NOT NULL, [arena_penalty_count] [int] NOT NULL, [arena_penalty_dec_time] [datetime] NOT NULL, [arena_mvp_count] [int] NOT NULL, [arena_record_0_0] [int] NOT NULL, [arena_record_0_1] [int] NOT NULL, [arena_record_1_0] [int] NOT NULL, [arena_record_1_1] [int] NOT NULL, [arena_record_2_0] [int] NOT NULL, [arena_record_2_1] [int] NOT NULL, [alias] [nvarchar](61) NOT NULL, ( FROM [telecaster81] .dbo.[Character]Code:Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'IDENTITY'. Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'ON'. Msg 102, Level 15, State 1, Line 5 Incorrect syntax near 'int'. Msg 102, Level 15, State 1, Line 29 Incorrect syntax near 'int'.
Code:
SET IDENTITY INSERT [telecaster8.1].dbo.[character] ON INSERT INTO [Telecaster7.4].dbo.[character] ([pet], [main_title], [sub_title_0], [sub_title_1], [sub_title_2], [sub_title_3], [sub_title_4], [remain_title_time], [arena_point], [arena_block_time], [arena_penalty_count], [arena_penalty_dec_time], [arena_mvp_count], [arena_record_0_0], [arena_record_0_1], [arena_record_1_0], [arena_record_1_1], [arena_record_2_0], [arena_record_2_1], [alias]) SELECT [pet], [main_title], [sub_title_0], [sub_title_1], [sub_title_2], [sub_title_3], [sub_title_4], [remain_title_time], [arena_point], [arena_block_time], [arena_penalty_count], [arena_penalty_dec_time], [arena_mvp_count], [arena_record_0_0], [arena_record_0_1], [arena_record_1_0], [arena_record_1_1], [arena_record_2_0], [arena_record_2_1], [alias] FROM [telecaster81] .dbo.[Character] AS Character SET IDENTITY INSERT [telecaster8.1].dbo.[character] OFF