A place where I record bits and pieces :)
To remove or re-size any files belonging to TEMPDB:
net stop MSSQLSERVER
NET START MSSQLSERVER /f /mSQLCMD
PS C:\tmp> sqlcmd -S SERVER -E
use TEMPDB
go
DBCC SHRINKFILE (temp5, EMPTYFILE);
USE master
GO
ALTER DATABASE tempdb REMOVE FILE temp5;
No comments:
Post a Comment