[MSSQL2000] 기본키 제약조건의 삭제
--sp_helpindex 'index_name'으로 인덱스 확인 --Primary key 의 제약조건명을 확인후 인덱스 삭제 drop index temp.PK__temp__276EDEB3 --primary key 삭제 alter table temp drop constraint PK__temp__276EDEB3
--primary key nonclustered index 로 ... alter table temp add constraint pk_temp primary key nonclustered (id) with fillfactor = 90 on [defult] -- default 는 기본파일그룹을 나타내는 식별자이므로 []가 반드시 필요 --unique한 클러스터드 인덱스를 만들면 on절에 기술한 파일 그룹으로 --전체테이블이 옮겨진다. --이것을 이용하면 특정 파일그룹으로 테이블을 옮길 수 있다.
출처: http://databaser.net/ | |
|
|