Return to Snippet

Revision: 10725
at January 11, 2009 06:14 by naspinski


Initial Code
EXEC sp_rename 'TABLENAME.OLD_COLUMNNAME', 'NEW_COLUMNAME', 'COLUMN';

Initial URL
http://naspinski.net/post/Change-column-name-in-a-MSSQL-table.aspx

Initial Description
Just replace TABLENAME.OLD_COLUMNNAME and NEW_COLUMNNAME with your new values.

Initial Title
rename a column is MS SQL

Initial Tags
sql

Initial Language
SQL