How to change programmatically non-identity column to identity one?

后端 未结 5 1950
终归单人心
终归单人心 2021-01-21 02:27

I have a table with column ID that is identity one. Next I create new non-identity column new_ID and update it with values from ID column + 1. Like this:

new_ID         


        
5条回答
  •  情话喂你
    2021-01-21 02:50

    From SqlServerCentral.com

    Changing from Non-IDENTITY to IDENTITY and vice versa

提交回复
热议问题