Ralf Eisenreich

SQLBlog.DE | ..things to remember

February 26th, 2008

SQL Server: How to move tempdb?

SQL Server, by Ralf.

USE [master]
GO
ALTER DATABASE tempdb
MODIFY FILE(NAME='tempdev', FILENAME='E:\Microsoft SQL Server\MSSQL.1\MSSQL\Data\tempdb.mdf')
GO
ALTER DATABASE tempdb
MODIFY FILE(NAME='templog', FILENAME='F:\Microsoft SQL Server\MSSQL.1\MSSQL\Log\templog.ldf')
GO

After this: Restart SQL Server.

Effect: Moving the TempDB to a more powerful storage will increase performance, especially for OLTP systems.

Back Top

Responses to “SQL Server: How to move tempdb?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

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

*

Security Code: