moving tempdb Microsoft SQl server 2000 2005

moving tempdb Microsoft SQl server 2000 2005

check to see what the setting is right now :

USE tempdb
GO
EXEC sp_helpfile
GO

after checking, change the location acording 

USE master
GO
ALTER DATABASE tempdb
 MODIFY FILE (NAME = tempdev, FILENAME = ‘D:\tempdb.mdf’)
GO
ALTER DATABASE tempdb
 MODIFY FILE (NAME = templog, FILENAME = ‘D:\templog.ldf’)
GO

Leave a Reply

Your email address will not be published. Required fields are marked *

17 − 10 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.