Home Forums SQL Server 2008 SQL Server 2008 - General Copy results, update a few fields, reinsert RE: Copy results, update a few fields, reinsert
Matthew Cushing
SSCrazy
Points: 2898
More actions
August 30, 2012 at 12:22 pm
#1532058
I tried the code, but it's not giving each row it's own new id, it's giving all of the rows the same new id, and inserting them into the temp table, then throwing an error when I try to insert because it's a unique column. See attached.