Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alter Table - Drop IDENTITY

Status
Not open for further replies.

agoeddeke

Programmer
Jul 23, 2002
201
US
Hello,

Is there a way using the ALTER TABLE command that I can drop the IDENTITY property from a column?

I'd like to drop just this setting rather than dropping the entire column and re-adding.

Thanks,
Andy
 
You can use Enterprise Manager by opening the table in design view and changing the properties of the column.

In T-SQL, you would need to copy the data into a temporary table, drop the old table, create a new table without the identity, and copy the data back. Be sure you recompile dependent objects.

Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top