Alter Column
Not sure why but I can't seem to figure out how to make an integer column an identity AFTER the table has been created.
I have tried this:
ALTER TABLE Table1
ALTER COLUMN Column1 int IDENTITY NOT NULL
GO
And various iterations. No luck. Maybe i'm just a bit foggy due to the long weekend, but does anyone know how this is done?
Thanks...
Scott
__________________
========================
Scott Klein
Author of:
Professional SQL Server 2005 XML
Professional WCF Programming: .NET Development with the Windows Communication Foundation
Professional LINQ
========================
|