Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Altering an Identity Column

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-05-02 : 07:29:39
Gomathi writes "I have created a table with identity column now i want to change the Idenity Column to a non-identity column(or vice versa). It is possible or not?"

TG
Master Smack Fu Yak Hacker

6065 Posts

Posted - 2005-05-02 : 11:33:11
I don't think you can use ALTER TABLE ALTER COLUMN to change the identity property (either adding or removing). As far as I know you'd have to drop and re-create the column (or the whole table). And of couse deal with dropping and re-establishing any referential integrety and saving off existing data that you want to preserve.

Be One with the Optimizer
TG
Go to Top of Page
   

- Advertisement -