sql change colum name code example
Example 1: sql rename column
EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'
Example 2: change name of colum in sql table
ALTER TABLE "table_name" RENAME COLUMN "column 1" TO "column 2";
EXEC SP_RENAME 'TABLE_NAME.OLD_COLUMN_NAME','NEW_COLUMN_NAME'
ALTER TABLE "table_name" RENAME COLUMN "column 1" TO "column 2";