database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
ㆍMS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MS-SQL Q&A 2211 게시물 읽기
No. 2211
tempdb위치를 옮기는방법
작성자
김이영(chrom)
작성일
2005-08-17 17:00
조회수
2,107

tempdb를 다른 디스크로 (c에서d로)

옮기는 방법을 알고 싶습니다. 다른 database와 달리 system DB 라

alter 가 않돼네요...

이 글에 대한 댓글이 총 3건 있습니다.

MODIFY FILE (NAME = logical_file_name, NEWNAME = new_logical_name...).

 

 modify 절을 이용하면 새로운 disk 로 데이터 화일을 이동할수 있습니다.

 

 bol 에 잘 나와 있습니다. 확인후 적용해 보세요.. ^^;;

sqler님이 2005-08-17 17:30에 작성한 댓글입니다. Edit

 

감사합니다 ^^
김이영(chrom)님이 2005-08-17 17:38에 작성한 댓글입니다.

Moving tempdb

You can move tempdb files by using the ALTER DATABASE statement.

1. Determine the logical file names for the tempdb database by using sp_helpfile as follows:
use tempdb
go
sp_helpfile
go
					
The logical name for each file is contained in the name column. This example uses the default file names of tempdev and templog.

2. Use the ALTER DATABASE statement, specifying the logical file name as follows:
use master
go
Alter database tempdb modify file (name = tempdev, filename = 'E:\Sqldata\tempdb.mdf')
go
Alter database tempdb modify file (name = templog, filename = 'E:\Sqldata\templog.ldf')
go
					
You should receive the following messages confirming the change:
File 'tempdev' modified in sysaltfiles. Delete old file after restarting SQL Server.

File 'templog' modified in sysaltfiles. Delete old file after restarting SQL Server.
3. Using sp_helpfile in tempdb will not confirm these changes until you restart SQL Server.
4. Stop and restart SQL Server.

석이님이 2005-08-22 22:56에 작성한 댓글입니다. Edit
[Top]
No.
제목
작성자
작성일
조회
2214안녕하세요!! 급합니다. !! 유지 관리 계획 질문이요!!! [3]
고세환
2005-08-18
3435
2213중복되는 데이타중 하나씩만 select~ [4]
민지
2005-08-18
3527
2212쿼리 분석기에서...동적으로 디비명을 받아서 처리하는 구문.. [5]
한상호
2005-08-17
2428
2211tempdb위치를 옮기는방법 [3]
김이영
2005-08-17
2107
22102개의 MDF 파일을 하나로 합칠수 있나요 ? [2]
김이영
2005-08-17
2433
2209mssql server 오류 1058 해결하는 방법 좀 알려주세요. [1]
알려주십쇼
2005-08-17
2413
2208분할된 뷰에서 Update, Insert시 [3]
최보라
2005-08-17
2432
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.016초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다