June 1, 2007 at 11:51 am
We have tempdb on a different physical disk than our user databases. A few weeks ago, we were running out of space on that disk during a data warehouse load. Until we could buy a bigger disk, we created a .ndf file on our main data drive. We now have acres of space on the tempdb disk, but SQL Server insists on using both the .ndf and .mdf files during the load. We tried deleting the .ndf file, but got an error message. I found a script example here (love SSC, Steve!) to move the file, but I don't think I need the .ndf anymore and would like to delete it. (A colleague tried the delete from EM, so I don't have the text of the message). Any ideas?
June 1, 2007 at 12:21 pm
how about :
use tempdb
go
DBCC SHRINKFILE
('locigal_file_name' , EMPTYFILE
go
alter database tempdb
REMOVE file 'locigal_file_name' ;
check bol at http://msdn2.microsoft.com/en-us/library/ms189493.aspx
Johan
Learn to play, play to learn !
Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems
- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
April 2, 2015 at 6:52 pm
Thank Johan...
Hank Freeman
Hank Freeman
Senior SQL Server DBA / Data & Solutions Architect
hfreeman@msn.com
678-414-0090 (Personal Cell)
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply