SemperFiDownUnda
Instructor
I'm writing a script to modify an exsisting database to a more appropriate structure.
Basically I'm altering the table so the primary key is not user entered but just an IDENTITY column.
Everything works but I would like my new primary key column to be the first physical column in the table. By default the ALTER TABLE ADD puts the column at the end of the table. In EM you can insert columns so that they can be at any point in the table. Is there a way to script that withouth creating a new table with the definition you want, copy the data across, drop the old table, rename the new table?
Hope I've been helpful,
Wayne Francis
If you want to get the best response to a question, please check out FAQ222-2244 first
Basically I'm altering the table so the primary key is not user entered but just an IDENTITY column.
Everything works but I would like my new primary key column to be the first physical column in the table. By default the ALTER TABLE ADD puts the column at the end of the table. In EM you can insert columns so that they can be at any point in the table. Is there a way to script that withouth creating a new table with the definition you want, copy the data across, drop the old table, rename the new table?
Hope I've been helpful,
Wayne Francis
If you want to get the best response to a question, please check out FAQ222-2244 first