ssql change column name code example
Example 1: cmd to rename a collumn name in sql
ALTER TABLE table_name RENAME COLUMN old_name TO new_name;
Example 2: alter table name sql
-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';
ALTER TABLE table_name RENAME COLUMN old_name TO new_name;
-- Microsoft SQL style
EXEC sp_rename 'TableOldName', 'TableNewName';