?
Solved

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

Posted on 2014-12-04
2
Medium Priority
?
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

719 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