I have a table MyTable with column, MyColB, MyColC and MyColD. I want to create a new column called MyColA as an identity column. My ALTER TABLE code works fine for that, but I want the column to be the first column instead of the last column. Here's the code I'm using:
What's the code needed to make MyColA the first column?
Code:
ALTER TABLE MyTable ADD MyColA INTEGER IDENTITY (1,1)