프로그래밍/MSSQL

mssql DB restore 복원명령

p-a-r-k 2016. 1. 21. 12:21
반응형
--DB 정보 확인
restore filelistonly from disk='E:\real_db\20160121.bak'
 
--DB 복구
restore database smart_jt from disk='E:\real_db\20160121.bak'
with move 'smart_jt' to 'E:\DB\smart_jt.mdf',
move 'smart_jt_log' to 'E:\DB\smart_jt_log.ldf'
반응형