query to rename column in sql code example Example: modify column name in tsql sp_rename 'table_name.old_column', 'new_name', 'COLUMN';