|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Explain temdb pleaseI understand that tempdb is a "temporary database", but in the real world,
can someone explain: 1)In the real world, when would I use tempdb? 2)Is it imporant that I understand tempdb? - Or is it rarely used? labsRcool@community.nospan wrote:
> I understand that tempdb is a "temporary database", but in the real world, You typically don't "use" tempdb explicitly, unless you are creating > can someone explain: > 1)In the real world, when would I use tempdb? > 2)Is it imporant that I understand tempdb? - Or is it rarely used? temp tables. When you execute a large query that involves extensive sorting, grouping, etc, SQL has to store that data somewhere as it's being manipulated, that's where TEMPDB is used. Thanks so much!
Show quoteHide quote "Tracy McKibben" wrote: > labsRcool@community.nospan wrote: > > I understand that tempdb is a "temporary database", but in the real world, > > can someone explain: > > 1)In the real world, when would I use tempdb? > > 2)Is it imporant that I understand tempdb? - Or is it rarely used? > > You typically don't "use" tempdb explicitly, unless you are creating > temp tables. When you execute a large query that involves extensive > sorting, grouping, etc, SQL has to store that data somewhere as it's > being manipulated, that's where TEMPDB is used. > > > -- > Tracy McKibben > MCDBA > http://www.realsqlguy.com > Hi
Along with Tracey's reply you may want to read what tempdb is used for in books online see http://msdn2.microsoft.com/en-us/library/ms190768.aspx, the system may make use of tempdb without you necessarily knowing, and therefore sizing and the location of tempdb on heavily used system can be very important http://msdn2.microsoft.com/en-us/library/ms175527.aspx this is even more important for SQL 2005 where row level versioning can use it, or if you use notification services use will be made of tempdb http://msdn2.microsoft.com/en-us/library/ms345368.aspx Overuse of tempdb by your application may result in contention. John Show quoteHide quote "labsRcool@community.nospan" wrote: > I understand that tempdb is a "temporary database", but in the real world, > can someone explain: > 1)In the real world, when would I use tempdb? > 2)Is it imporant that I understand tempdb? - Or is it rarely used? Thanks!
I now have a better understanding regarding this. Those links are very helpful, thanks for your time! Show quoteHide quote "John Bell" wrote: > Hi > > Along with Tracey's reply you may want to read what tempdb is used for in > books online see http://msdn2.microsoft.com/en-us/library/ms190768.aspx, the > system may make use of tempdb without you necessarily knowing, and therefore > sizing and the location of tempdb on heavily used system can be very > important http://msdn2.microsoft.com/en-us/library/ms175527.aspx this is even > more important for SQL 2005 where row level versioning can use it, or if you > use notification services use will be made of tempdb > http://msdn2.microsoft.com/en-us/library/ms345368.aspx Overuse of tempdb by > your application may result in contention. > > John > > "labsRcool@community.nospan" wrote: > > > I understand that tempdb is a "temporary database", but in the real world, > > can someone explain: > > 1)In the real world, when would I use tempdb? > > 2)Is it imporant that I understand tempdb? - Or is it rarely used?
Transaction Log Backup Job Failing
Adding Data Files How to Use Fixed memory Size in SQL Server 2005 Deadlocks and trace 1204 Copy Database Wizard Problems Load question: would this be a trivial or non-trivial query for a SQL Server installation to calcula Developer Edition Integration Services Install only How to Use Fixed memory Size in SQL Server 2005 Updating linked server table |
|||||||||||||||||||||||