How to move tempdb database ???
I've omitted some extra columns from the result set. The logical names always seem to be tempdev and templog. Knowing this we can run the following ALTER DATABASE statement in SQL Server 2000 or SQL Server 2005 to move tempdb. Set the FILENAME parameter to the location where you'd like each file.
USE master
GO
ALTER DATABASE tempdb
MODIFY FILE (NAME = tempdev, FILENAME = 'C:\tempdb2005.mdf')
GO
ALTER DATABASE tempdb
MODIFY FILE (NAME = templog, FILENAME = 'C:\tempdb2005.ldf')
GO
Comments
Post a Comment