/ Published in: SQL
Just replace TABLENAME.OLD_COLUMNNAME and NEW_COLUMNNAME with your new values.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
EXEC sp_rename 'TABLENAME.OLD_COLUMNNAME', 'NEW_COLUMNAME', 'COLUMN';
URL: http://naspinski.net/post/Change-column-name-in-a-MSSQL-table.aspx