MSSQL
MSSQL 에서 bak 파일 복구
mkh23911
2015. 8. 21. 17:03
restore filelistonly from disk = 'BAK 파일의 절대경로'
ex ) restore filelistonly from disk = 'D:\test.BAK'
BAK 파일 내용 읽는다.
Restore Database 데이터베이스명 from disk = 'BAK 파일의 절대경로'
ex ) Restore Database test_DB from disk = 'D:\test.BAK'
Restore Database 데이터베이스명 from disk = 'BAK 파일의 절대경로' with move '데이터파일 논리명' to 'MDF 파일이 들어갈 절대 경로, move '로그파일 논리명' to 'LDF파일이 들어갈 절대경로'
ex ) Restore Database test_DB from disk = 'D:\test.BAK' with move 'test_Data' to 'D:\test.MDF' , move 'test_Log' to 'D:\test_Log.LDF'