SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Temdb: per Instance not per Database?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AlwaysLearner
Starting Member

1 Posts

Posted - 11/17/2012 :  14:17:45  Show Profile  Reply with Quote
Hi All!

The tempdb system database is created by system per Instance or per Database on SQL Server?

I believe it is created per Instance is it true?

Kindly requested to guide!

Regards,

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 11/17/2012 :  22:03:15  Show Profile  Reply with Quote
Yes it is true. It is best to put TempDB in different drive. Please check TempDB in msdn.
Go to Top of Page

srimami
Posting Yak Master

160 Posts

Posted - 11/20/2012 :  06:55:12  Show Profile  Reply with Quote
I agree with sodeep; it is created by system per instance and is advisable to have a separate drive for tempdb. Also, if tempdb is using it's max capacity, please restart the sql server to reclaim the disk space before it throws an error on tempdb full.

Thanks,
Sri.
Go to Top of Page

revdnrdy
Posting Yak Master

USA
220 Posts

Posted - 11/29/2012 :  11:52:42  Show Profile  Reply with Quote
quote:
Originally posted by srimami

I agree with sodeep; it is created by system per instance and is advisable to have a separate drive for tempdb. Also, if tempdb is using it's max capacity, please restart the sql server to reclaim the disk space before it throws an error on tempdb full.

Thanks,
Sri.



If you restart to reclaim tempDB space won't you take a bit of a performance hit while tempDB rebuilds itself? If its running close to its memory limit wouldn't it be better to resize tempDB via the alter database command?
Go to Top of Page

sodeep
Flowing Fount of Yak Knowledge

USA
7174 Posts

Posted - 11/29/2012 :  14:01:30  Show Profile  Reply with Quote
Restarting SQL Server is the last option.It is better to plan for tempdb with space and have them in separate drive(ex: RAID 10) and split them based on processors. If many of the queries are using tempdb or Online Reindexing, you should find better alternative or tune the queries.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000