SQL 2000 Database Backup

SQL 2000 Database Backup


서버 쿼리분석기에서 백업

BACKUP DATABASE 대상DB TO DISK = 'c:\DB_back\대상DB.bak'

서버 쿼리분석기에서 복원

방법 1:

-- 로지컬 네임을 알아낸다.
restore filelistonly from disk = 'F:\FTP\medical_20080522.bak'

-- 데이버 베이스 생성 과 restore를 동시에 해야한다.
create database medical

-- 저장 경로 지정해주고, restore 시작~!
restore database medical from disk = 'F:\FTP\medical_20080522.bak'
with recovery, replace,
move 'medical_Data' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\medical.mdf',
move 'medical_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL\Data\medical.ldf'


방법 2:

DB 생성 - create database medical
DB 복원 - restore database medical from disk = 'c:\DB_back\대상DB.bak'

쿼리로 이렇게 구성됩니다.
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기

Posted by 홍반장

2006/07/03 11:04 2006/07/03 11:04
Response
No Trackback , a comment
RSS :
http://tcbs17.cafe24.com/tc/rss/response/1868


블로그 이미지

- 홍반장

Archives

Recent Trackbacks

Calendar

«   2006/07   »
            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 31          
Statistics Graph

Site Stats

Total hits:
175520
Today:
46
Yesterday:
41