Welcome
Login
|
Register
Monday, January 05, 2009
Web
Site
Search
Home
Knowledge Base
Support/TicketCRM
Contact
More Information
More Information
More Information
More Information
You are here:
Knowledge Base
Please
Register
or
login
to view our private forums, it is free!!
Unanswered
Active Topics
Forums
Search
Forums
>
Knowledge Base Systems
>
MSSQL
Subject: Change tempdb location
Prev
Next
You are not authorized to post a reply.
Author
Messages
Oldest First
Newest First
cmuench
Posts:59
04/27/2007 9:40 AM
# Determine the logical file names of the tempdb database and their current location on the disk.
SELECT name, physical_name AS CurrentLocation
FROM sys.master_files
WHERE database_id = DB_ID(N'tempdb');
GO
# Change the location of each file by using ALTER DATABASE.
USE master;
GO
ALTER DATABASE tempdb
MODIFY FILE (NAME = tempdev, FILENAME = 'E:\SQLData\tempdb.mdf');
GO
ALTER DATABASE tempdb
MODIFY FILE (NAME = templog, FILENAME = 'F:\SQLLog\templog.ldf');
GO
# Stop and restart the instance of SQL Server.
# Verify the file change.
SELECT name, physical_name AS CurrentLocation, state_desc
FROM sys.master_files
WHERE database_id = DB_ID(N'tempdb');
# Delete the tempdb.mdf and templog.ldf files from the original location.
You are not authorized to post a reply.
Knowledge Base (DNN MODULE FIXES and HOW TO's
--DOTNETNUKE Install/Upgrade Directions
--IMPORTANT INFO
--DNN 3.0 to 3.1 UPGRADE
--Sigma Pro
--Clean Install of DNN and Upgrades
--Dnn Free Module List
--Portal Store Setup Help
--Installing SSL certificate in IIS
--Installing your SSL Certificate on Tomcat
Applications
--Lytek
Knowledge Base (Common Questions
--Common Questions
Knowledge Base Systems
--Servers
----ISA
--MSSQL
--Oracle
--Linux
--Windows
--Virtualization
--Blades
--Network
Forums
>
Knowledge Base Systems
>
MSSQL
> Change tempdb location
ActiveForums 3.7
Privacy Statement
|
Terms Of Use
Copyright 2006-7 Vigilant Support