SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Issue moving temp DB
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

masterdineen
Aged Yak Warrior

United Kingdom
548 Posts

Posted - 12/10/2012 :  11:21:27  Show Profile  Reply with Quote
Hello there.

i am trying to move the tempdb to another location.

just to test i have tried the following.

USE master
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = tempdev, FILENAME = 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\test\tempdb.mdf')


GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = templog, FILENAME = 'C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\test\tempdb.ldf')
GO


then i get

Msg 5121, Level 16, State 1, Line 1
The path specified by "C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\test" is not in a valid directory.

can someone help me out please.

Regards

Rob

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 12/10/2012 :  12:56:19  Show Profile  Reply with Quote
It says " Path is not valid". Why move to C Drive?
Go to Top of Page

masterdineen
Aged Yak Warrior

United Kingdom
548 Posts

Posted - 12/10/2012 :  14:26:31  Show Profile  Reply with Quote
i am just testing to see how it works really.

I am moving to another folder within the MSSQL folder.

why would it say not valid when the folder exists.?
Go to Top of Page

masterdineen
Aged Yak Warrior

United Kingdom
548 Posts

Posted - 12/11/2012 :  03:55:12  Show Profile  Reply with Quote
Ive done it now.

moved onto D: fed up with it filling up so quickly before i can keep an eye on it.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000