Good day,
When we add a column to a table, it gets added to the end of the table. However, I really need to add a column to the beginning of the table. The reason is that we have scripts that import data from a flat file source to a table, and that it would be really easier for us to have the columns at the beginning to the table.
Thank you!
sql server 2005
GUI method: in SQL Server Management Studio if you right click the table and choose ‘Design’ you can then drag the column up to the top and hit save.
Note: Be aware that by doing this, SQL Server drops the table and creates it again. You won’t lose your data though.