Home Forums SQL Server 2008 SQL Server Newbies How to switch ID number to new values (but maintaining duplicates for new ones) RE: How to switch ID number to new values (but maintaining duplicates for new ones)
haiao2000
Hall of Fame
Points: 3734
More actions
April 4, 2013 at 3:56 pm
#1603753
or if you are lazy to list the column name do this.
SELECT NEWID() AS [NewID], * INTO NewTable
FROM ExistingTable;
ALT_R TABLE NewTable DR_P COLUMN OldID
*fill in the blank