** 파일목록 조회하기

select * from sysfiles
----------------------------------------------------------------------------------
fileid  groupId  크기  MAXSIZE  성장  지위  perf  이름  파일명
----------------------------------------------------------------------------------
1  1  106224  -1  10  1048578  0  ProductTest_Data  이메일 : \ 데이터 \ Product.mdf
이  0  128  -1  10  1048642  0  ProductTest_Log  이메일 : \ 데이터 \ Product_log.ldf



** 이름변경하기
이제 데이터 베이스의 논리이름을 변경하면 된다.

ALTER DATABASE Product
MODIFY FILE (NAME = ProductTest_Data, NEWNAME = Product_Data)

ALTER DATABASE Product
MODIFY FILE (NAME = ProductTest_Log, NEWNAME = Product_Log)

+ Recent posts