kendallsoft posted on July 16, 2010 12:44

It you are running out of diskspace because of large temp files on your sql box, you can change the location of the tempdb  where you have more space select * from dbo.sysdatabases 

USE master

GO

ALTER DATABASE TempDB MODIFY FILE(NAME = tempdev, FILENAME = 'D:\DB\tempdb.mdf')GOALTER DATABASE TempDB MODIFY FILE(NAME = templog, FILENAME = 'D:\DB\tempdb.ldf')

FILENAME = is the new location- You will have to restart SQL to take effect. 

 

GO 

Enjoy, Mark


Posted in: Technology mostly .net  Tags:

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview


 
September 5. 2010 19:49

no site

Calendar

«  September 2010  »
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
View posts in large calendar

Tag Cloud

Recent Posts

Recent Comments

Banners

Theme Grabber
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010 Mark Kendall's Blog