Solved

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

Posted on 2014-12-04
2
196 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 45

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

705 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now