4,552,843 th visitor since 2017.2.1 ( Today : 616 )
Programming
No. 428
Name. swindler
Subject. BAK 백업 파일 복원
Main Cate. MS-SQL
Sub Cate.
Date. 2008-01-31 09:14
Hit. 3900 (203.248.117.3)
File.
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'


[바로가기 링크] : http://coolx.net/cboard/develop/428



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog