SQL SERVER – How to Rename a Column Name or Table Name
I often get requests from blog reader for T-SQL script to rename database table column name or rename table itself. Here is a video demonstrating the discussion [youtube=http://www.youtube.com/watch?v=5xviNDISwis] The script for renaming any column : sp_RENAME 'TableName.[OldColumnName]' , '[NewColumnName]', 'COLUMN' The script for renaming any object (table, sp etc) :…
Read More