I've been having trouble figuring out how to add a simple integer-index column to an existing table in a SQL Server database. The closest question I've been able to find on StackOverflow isn't as simple as my question.
I'm trying to figure out how to turn this:
into an actual column.
I've seen this:
CREATE INDEX idx_SomeColumn
ON SomeTable (SomeColumn);
but I do not understand the significance of the SomeColumn
reference and the database is shared so I don't have much leeway to test.