#Update:If i use the following query:SET IDENTITY_INSERT [SRO_VT_SHARD].[dbo].[_Items] ONINSERT INTO [SRO_VT_SHARD].[dbo].[_Items] (ID64, RefItemID, OptLevel, Variance, Data, CreaterName, MagParamNum, MagParam1, MagParam2, MagParam3,MagParam4,MagParam5,MagParam6,MagParam7,MagParam8,MagParam9,MagParam10,MagParam11,MagParam12,Serial64)SELECT ID64, RefItemID, OptLevel, Variance, Data, CreaterName, MagParamNum, MagParam1, MagParam2, MagParam3,MagParam4,MagParam5,MagParam6,MagParam7,MagParam8,MagParam9,MagParam10,MagParam11,MagParam12,Serial64FROM [SRO_VT_SHARD_OLD].[dbo].[_Items]SET IDENTITY_INSERT [SRO_VT_SHARD].[dbo].[_Items] OFF
I get the following errors:quote:
Msg 2627, Level 14, State 1, Line 2Violation of PRIMARY KEY constraint 'PK__Itemss'. Cannot insert duplicate key in object 'dbo._Items'.The statement has been terminated.