February 13, 2005 at 10:05 pm
Hi,
My modeldb data and logfiles are on d: drive by default..so whenever i restart the server the tempdb data and logfiles are also being created on D: drive ..i would like to change the physical path of tempdb files to E: drive..how can i do that?
February 14, 2005 at 12:39 am
use master
go
alter database tempdb modify file (name=tempdev,filename='E:\MSSQL\DATA\TEMPDB.MDF')
go
alter database tempdb modify file (name=templog,filename='E:\MSSQL\DATA\templog.ldf')
go
-- RESTART SQL SERVER !!!!!!!!
SHUTDOWN
Startup sqlserver with sqlserver service manager (don't forget sqlagent !)
Cleanup old files !
use tempdb
go
exec sp_helpfiles
go
check http://support.microsoft.com/default.aspx?scid=kb;en-us;224071
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
February 14, 2005 at 2:10 am
yeah..it worked well..tq v much
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply