解决方法
你可以很容易地做到这一点:
-- Select everything into temp table Select * Into #tmpBigTable From [YourBigTable] -- Drop the Primary Key Column from the temp table Alter Table #tmpBigTable Drop Column [PrimaryKeyColumn] -- Insert that into your other big table Insert Into [YourOtherBigTable] Select * From #tmpBigTable -- Drop the temp table you created Drop Table #tmpBigTable
如果您在“YourOtherBigTable”中有Identity In On,并且列完全相同,那么你会没事的。