Quote:
quote:Originally posted by jbenson001
You cannot use alter to change the column to identity, you will have to use EM.
|
Yup ... and if you inspect what EM does when you do this by looking at the generated script, you'll see that it "modifies" a column to be an identity by creating a temporary table with the new column definition as an identity column, turning IDENTITY_INSERT on, copying the contents of the old table into the new one, dropping the old table then renaming the temporary to the old name. It'll also deal with any indexes or primary key constraints by dropping and re-adding them.
If you absolutely must do this via QA, use EM, make your changes, generate the script, save the script, discard the design changes, then later execute the script you saved.
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com