티스토리 뷰

Database

[MSSQL] MSSQL2000 DB백업본 복구하기

애플자라 2010. 10. 9. 13:50
반응형


RESTORE FILELISTONLY
    FROM DISK = 'D:\ems_monitor_backup_20070226'

RESTORE DATABASE ems_monitor
    FROM DISK = 'D:\ems_monitor_backup_20070226'
    WITH MOVE 'ems_monitor_Data_01' TO 'D:\MSSQL\ems_monitor_Data_01_Data.NDF',
    MOVE 'ems_monitor_Log_01' TO 'D:\MSSQL\ems_monitor_Log_01_Log.LDF',
    stats = 10

exec sp_helpdb ems_monitor

exec sp_dbcmptlevel 'ems_monitor', '90'

DBCC SHRINKDATABASE (ems_monitor)
GO

반응형
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함