2015. 11. 25. 13:33
LDF, MDF 란 : SQL Server에서 사용되는 데이터파일(MDF)와 로그파일(LDF)의 확장자입니다.
* 복구방법
sp_attach_db 저장 프로시저를 이용하여 DBMS 에 붙이는 방법입니다.
1. 데이터베이스명 : gmate
mdf, ldf 파일들의 위치 : c:\Data
mdf 파일명 : gmate.mdf
ldf 파일명 : gmate_log.ldf
2. 위와 같다면 쿼리분석기에서 아래와 같은 문장으로 실행시키시면 됩니다.
* 경로는 LDF/MDF 있는 파일 경로를 적어주면 됩니다.
use master
EXEC sp_attach_db @dbname = N'gmate
'
, @filename1 = N'c:\Data\gmate
.mdf'
, @filename2 = N'c:\Data\gmate_log.ldf'

3. 0 이 반환되면 성공된 것입니다.
이제부터 데이터베이스를 사용하시면 됩니다.

4. gmate LDF/MDF DB복원 완료

출처:http://kin.naver.com/qna/detail.nhn?d1id=1&dirId=10205&docId=73413369
'Windows' 카테고리의 다른 글
오프라인 설치용 Explorer 11 버전 (0) | 2016.10.25 |
---|---|
윈도우 부팅 및 종료시간 줄이기 (0) | 2016.05.19 |
<윈도우 Windows> OS별 메모리 한계 (0) | 2015.11.09 |
<Windows> Telnet 텔넷 설치 명령어 (0) | 2015.09.10 |
<Windows> 환경 변수 추가 방법 (0) | 2015.09.09 |