Can I use a T-SQL script to delete an IDENTITY column?

T-SQL's ALTER TABLE statement doesn't support dropping the IDENTITY property in SQL Server 2000 or 7.0. Your only option for deleting an IDENTITY column is to create a new table structure without the IDENTITY column, then copy the data into this structure.

End of Article




You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

Your question and answer are confusing each other. You can certainly drop a column that has the identity property. I think your question meant to read, "Can I use a T-SQL script to remove the IDENTITY property for a column?"

yukonguy

Article Rating 2 out of 5

what about 2005?

swirl80

Article Rating 1 out of 5