Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For sQL server 2008 R2 Analysis services, how can I move tempdb database files from one drive to another. At the time of installation, I didnt the seperate drive for tempdb. Now that I do have one, I need to move to the new drive.


share|improve this question
up vote 1 down vote accepted

You need to alter the location using ALTER DATABASE tempdb MODIFY FILE location and restart SQL Server. SQL Server will automatically create the tempdb in the new location but you may have to go to the old location to delete the (old) files.

See Moving the tempdb database in

share|improve this answer
I want to move analysis services tempdb database not SQL server database engine. – Manjot May 17 '11 at 21:26
Manjot, I don't work with Analysis services but I don't think Analysis services doesn't have a separate tempdb IIRC. – Sankar Reddy May 17 '11 at 22:13
Thanks for clarifying – Manjot May 17 '11 at 23:03

Connect to your Analysis Services server in SQL Management Studio. Right-click the server, then click Properties in the menu. In the Properties dialog, check the "Show Advanced (All) Properties" check box at the bottom of the list. Then, in the grid above that check box, set the location you want for SSAS TempDB in the "TempDir" setting.

You will have to restart SQL Server Analysis Services for the change to take effect.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.