Does anyone know of a way in Microsoft SQL where you can amend the table via script, but keep the order of the table.
For example:
Table1:
:Column6
:Column5
:Column4
:Column3
:Column2
:Column1
Lets say i want to Add in :Column7, But i want the order to still be in 7,6,5,4,3,2,1
I know its possible to drop the table and recreate Or manually go into the designer and add in the column7, when inserting Column7 above 6 it will keep it in order.
I want a efficient way of doing this via a script for upgrading customers, The order is important as when manually analysing the data it makes it easy when its in X order an has been for many year. The designer is perfect for adding in columns but leads to many errors in stuff being forgotten or miss typed.
Curious if anyone else has been in a similar situation and how they have worked around it.