• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 339
  • Last Modified:

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

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
Chandra Mohan Kanithi
Asked:
Chandra Mohan Kanithi
1 Solution
 
Vitor MontalvãoMSSQL Senior EngineerCommented:
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
 
Chandra Mohan KanithiPrincipal Consultant - DatabaseAuthor Commented:
Thank you Vitor. We have moved tempdb to new disk in SQL Server 2008 Cluster environment.

Regards,
Chandra
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now