SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Old Forums
 CLOSED - General SQL Server
 Altering an Identity Column
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 05/02/2005 :  07:29:39  Show Profile  Visit AskSQLTeam's Homepage
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
Flowing Fount of Yak Knowledge

USA
6062 Posts

Posted - 05/02/2005 :  11:33:11  Show Profile
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
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000