Re: use of tempdb by union all
From: Tenaya (ct_at_ct.ct)
Date: 03/22/04
- Next message: Mike: "Re: Loop for Quantity"
- Previous message: Alok: "Re: Follow up query from Fresher - Aaron Bertrand"
- In reply to: Andrew J. Kelly: "Re: use of tempdb by union all"
- Next in thread: Andrew J. Kelly: "Re: use of tempdb by union all"
- Reply: Andrew J. Kelly: "Re: use of tempdb by union all"
- Reply: Tibor Karaszi: "Re: use of tempdb by union all"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 22 Mar 2004 09:14:43 -0500
Andrew,
It was my impression that the tempdb database will be used when SQL Server
has insufficient memory / disk space to carry out the operation in the
current database ... i.e., the one in which the operation was "launched"
(via the USE command, either implicitly or explicitly).
For example, the section "tempdb and Index Creation" in the SQL Server 2000
Books Online indicates that one has to explicitly request SQL Server to use
the tempdb database when creating an index ... with the implication that
otherwise the resources of the current database will be used.
I think it might be misleading to imply that the tempdb database area is the
"first choice" of SQL Server when dealing with "most temporary or
intermediate operations" :-)
Chief Tenaya
"Andrew J. Kelly" <sqlmvpnoooospam@shadhawk.com> wrote in message
news:uQ69PMBEEHA.1452@TK2MSFTNGP09.phx.gbl...
> That is essentially what tempdb's purpose is in life. Most temporary or
> intermediate operations will utilize tempdb.
>
> --
> Andrew J. Kelly SQL MVP
>
>
> "simo" <anonymous@discussions.microsoft.com> wrote in message
> news:818D0359-BEBC-4B30-BAC8-2B5D8BD8A930@microsoft.com...
> > Hi,
> > I need confirmation of the fact that when you perform an operation like
> UNION ALL, tempdb is used as the working area for unionizing the data
before
> returning the new result set.
> > can anybody confirm this?
> >
> > many thanks.
>
>
- Next message: Mike: "Re: Loop for Quantity"
- Previous message: Alok: "Re: Follow up query from Fresher - Aaron Bertrand"
- In reply to: Andrew J. Kelly: "Re: use of tempdb by union all"
- Next in thread: Andrew J. Kelly: "Re: use of tempdb by union all"
- Reply: Andrew J. Kelly: "Re: use of tempdb by union all"
- Reply: Tibor Karaszi: "Re: use of tempdb by union all"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|