Remove IDENTITY property from PRIMARY KEY column

  • I have table with IDENTITY property in PRIMARY KEY column.

    How to remove existing IDENTITY property form the PRIMARY KEY column

  • Add column with temp column name as nullible.

    Copy values from ID to temp column.

    Drop PK and ID column

    Rename temp column to ID.

    Change column to not nullible.

    Create PK on New ID column.

    Catch-all queries done right [/url]
    Gail Shaw's Performance Blog[/url]

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

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