Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
AlwaysLearner
Starting Member
1 Post |
Posted - 2012-11-17 : 14:17:45
|
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
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2012-11-17 : 22:03:15
|
Yes it is true. It is best to put TempDB in different drive. Please check TempDB in msdn. |
|
|
srimami
Posting Yak Master
160 Posts |
Posted - 2012-11-20 : 06:55:12
|
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. |
|
|
revdnrdy
Posting Yak Master
220 Posts |
Posted - 2012-11-29 : 11:52:42
|
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? |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2012-11-29 : 14:01:30
|
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. |
|
|
|
|
|