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)

  • 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