Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / SQL

How to rename the column on a DB

1.00/5 (1 vote)
9 May 2010CPOL 5.7K  
That isn't complicated task but i thought this trick is enough usefullSP_RENAME 'YourTable.OldColumnName','NewColumnName','COLUMN'
That isn't complicated task but i thought this trick is enough usefull

SP_RENAME 'YourTable.OldColumnName','NewColumnName','COLUMN'

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)