Solved

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

Posted on 2014-12-04
2
215 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 47

Accepted Solution

by:
Vitor Montalvão earned 500 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

777 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