How will Change All Identity Columns to NOT FOR REPLICATION

  • Hi

    how will i change the Identity columns to NOTFORREPLICATION Option. Iam using Sql Server 2000. I want to configure the replicaion and the tables contains thousands of records. I do not want to loose any data from these tables

    Regards

    Rajesh V R

  • Hmmm...not pretty

    You are going to have to generate a process that, for each table,

    generates a new table with the same schema which includes the NOT FOR REPLICATION, insert the records into the new table using IDENTITY INSERT.

    delete the existing table,

    rename the new table to the old name

    Hope this helps

    Regards

    Graeme

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply