Sql Server: How to rename a column
- Posted by Sqltimes
- On August 9, 2014
- 0 Comments
Quick one today: Sometimes, we need to rename some column names. Surprisingly, there is no intuitive way to rename a column name in Sql Server i.e. ALTER TABLE statement type method. We need to use a system stored procedure called sp_rename. Example Below: The sample code below, renames the column ‘PKID’ in ‘dbo.ProductAttribute’ table to […]
Read More