Clean Code that Works.

EXEC SP_RENAME '테이블명.[수정할컬럼명]', '수정될 이름', 'COLUMN'

실행 시켰을 시
"주의: 개체 이름 부분을 변경하면 스크립트 및 저장 프로시저를 손상시킬 수 있습니다."

2-2)컬럼 타입 변경

age 칼럼을 int에서 varchar(3)으로 변경

alter table abc alter column age varchar(3)

b) age칼럼을 varchar(3)에서 int not null로 변경

alter table abc alter column age int not null

2-3)칼럼, 제약 제거

alter table abc drop constraint df_addr

b) alter table abc drop constraint df_addr

b) addr칼럼 varchar(10)에서 nvarchar(10)으로 변경가능

alter talbe abc alter column addr nvarchar(10) not null

c)addr칼럼 제거

alter table abc drop column addr