I am not sure if you can do this with an ALTER table statement.
I tried this out by changing a column in an existing table and then looked at the change script that the Sql Server Enterprise Manager suggested. That script creates a new table with the new columns, copies the data in the new table and drops the old table.
If you want to try this out yourself: make a change to a table in EM and then click the Save Script icon....
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|