As I am running a query to "sort" data, I get a message saying low disk space on Drive.I checked the tempdb it was 8 MB earlier now it shows as 2.5 GB.how do I clear the data in temp db? Thx in advance sudoku
Whenever you restart SQL Server it will re-create tempdb. Hemantgiri S. Goswami "Humans don't have Caliber to PASS TIME , Time it self Pass or Fail Humans" - by Hemantgiri S. Goswami ------------------------ http://hemantgirisgoswami.blogspot.com
If at all I stop the server ,I have to run the query again .I do not have much space on my drive.Do I have any other option to change the path of the tempdb to another drive(Say drive D) where I have enough space. Can you please explain How do I shrink the tempdb? Thx for ur suggestion and thx in advance sudoku
You can use Enterprise Manager --> Tempdb --> All tasks-- >Shrink Database. or create one secondary file and point to D: Specify resticted growth to the first file (say 500 mb). Once it reaches the max size, it will automatically redirect to the secondary file. Gopi