RE: switching off the identity on a column
I get the same error, can't find in BOL why the syntax error. Anyway, what about this: -- First add an identity column... ALTER TABLE MyTable ADD MyNewIdentityColumn INT NOT NULL IDENTITY(1,1) GO -- Next, throw the old values into the new identity column UPDATE MyTable SET MyNewIdentityColumn = MyOldIntColumn GO -- Next, drop old […]
2003-06-17