Last active
December 20, 2016 23:29
-
-
Save aswad32/1eae86f89c26313b1d43373c0e61b51f to your computer and use it in GitHub Desktop.
Moving SQL Server tempdb to another drive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use master | |
go | |
alter database tempdb modify file (Name=tempdev, filename='D:\SQLServer\tempdb.mdf') | |
go | |
alter database tempdb modify file (Name=templog, filename='D:\SQLServer\templog.ldf') | |
go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment