Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4592042
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:28:53+00:00 2026-05-21T22:28:53+00:00

I would like to make all stuff related to TempDB be stored on a

  • 0

I would like to make all stuff related to TempDB be stored on a separate HD.

I have this new HD with a 500 Gb size as my E:\ drive.

How would I use or move TempDB from one drive to another drive?

——————————EDIT—————————
After following the tutorial, when restarting the Server I get the message:

The request failed or the service did
not respond in a timely fashion.
Consult the event log or other
application error logs for details.

  • I can not start it anymore, any suggestion?
    Does it have to do with the database path. (the location of the database such as tempdb.mdf is different than the folder 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA’
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:28:54+00:00Added an answer on May 21, 2026 at 10:28 pm

    This can be done in the server properties.

    enter image description here

    1. Right click on your server instance
    2. Click “Properties”
    3. Click “Database Settings”
    4. Change “Log” to whatever path you want (including alternate HDD)

    EDIT

    I misunderstood the above question… I suppose I should learn to read. The above instructions show how to move the LOG DB to a different hard drive.

    The instructions found HERE will show you how to move the TempDB

    Open Query Analyzer and connect to your server. Run this script to get the names of the files used for TempDB.

    USE TempDB
    GO
    EXEC sp_helpfile
    GO
    

    Results will be something like:

    | name     | fileid  | filename                                                | filegroup  | size     |
    |----------|---------|---------------------------------------------------------|------------|----------|
    | tempdev  | 1       | C:Program FilesMicrosoft SQLServerMSSQLdatatempdb.mdf   | PRIMARY    | 16000 KB |
    | templog  | 2       | C:Program FilesMicrosoft SQL ServerMSSQLdatatemplog.ldf | NULL       | 1024 KB  |
    

    Along with other information related to the database. The names of the files are usually tempdev and demplog by default. These names will be used in next statement. Run following code, to move mdf and ldf files.

    USE master
    GO
    ALTER DATABASE TempDB MODIFY FILE
    (NAME = tempdev, FILENAME = 'd:datatempdb.mdf')
    GO
    ALTER DATABASE TempDB MODIFY FILE
    (NAME = templog, FILENAME = 'e:datatemplog.ldf')
    GO
    

    The definition of the TempDB is changed. However, no changes are made to TempDB till SQL Server restarts. Please stop and restart SQL Server and it will create TempDB files in new locations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tab navigator control and I would like to make all of
I would like to make all my public variables variables/methods/classes internal when compiling my
I would like to make sure if a textbox has any content at all,
I would like your suggestion about this problem... To make it simple, I'll consider
I have a java program in a certain directory. I would like to make
I would like make an extension method for the generic class A which takes
Would like to make anapplication in Java that will not automatically parse parameters used
I would like to make a web browser for my own use with various
I would like to make a website that is php and only requires one
I would like to make the decimals in the following string display as superscript:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.