Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to move tempdb database in SQL Server 2008 Cluster server?

Posted on 2014-12-04
2
Medium Priority
?
307 Views
Last Modified: 2014-12-07
Hi,

We need to move tempdb database files (Data and TLog) to new drive in cluster server. Please provide the detailed solution for this 'tempdb' movement.

Thanks & Regards,
Chandra
0
Comment
Question by:Chandra Mohan Kanithi
2 Comments
 
LVL 52

Accepted Solution

by:
Vitor Montalvão earned 2000 total points
ID: 40482708
First of all add the new drive in the cluster resources and configure the SQL Server to be dependent on that drive.
Then you need to change tempdb file locations using the following commands:
ALTER DATABASE TempDB MODIFY FILE
(NAME = tempdev, FILENAME = 'N:datatempdb.mdf')
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = templog, FILENAME = 'N:datatemplog.ldf')

Open in new window

NOTE: I used 'N' as the new drive letter but you need to change it for the letter that you are using.

Now you just need to restart the SQL Server and will start with the tempdb in the new location.
0
 

Author Comment

by:Chandra Mohan Kanithi
ID: 40486198
Thank you Vitor. We have moved tempdb to new disk in SQL Server 2008 Cluster environment.

Regards,
Chandra
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question