Re: When will global temp table not be dropped after connection is
- From: "William Vaughn \(MVP\)" <billva@xxxxxxxxxxxxxxx>
- Date: Tue, 8 Jul 2008 21:34:39 -0700
It's easier to simply create a permanent table.
"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D11629A9-3AF3-4E11-ABDD-76F2545C1C60@xxxxxxxxxxxxxxxx
Hi Andrew,
Thanks for the reply. The global temp table is used for some special
purpose. How can I find out whether anything is still accessing that global
temp table? Does connection pooling or related settings have any effect on
the duration of the global temp table?
"Andrew J. Kelly" wrote:
Global temp tables are destroyed after the last user or connection is
finished with them. So if that connection is the only one accessing the
table at the time the connection is lost it will be destroyed. But global
temp tables are almost always a bad idea anyway. If you need persistence use
a real table instead.
--
Andrew J. Kelly SQL MVP
Solid Quality Mentors
"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:690FD37C-2E80-4F14-A0EB-500A5498D96A@xxxxxxxxxxxxxxxx
> Is there any SQL Server 2005 Express setting or ODBC setting that will
> cause
> global temp table not be dropped after the connection created it is > lost?
--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________
.
- References:
- When will global temp table not be dropped after connection is los
- From: Peter
- Re: When will global temp table not be dropped after connection is los
- From: Andrew J. Kelly
- When will global temp table not be dropped after connection is los
- Prev by Date: Re: When will global temp table not be dropped after connection is los
- Next by Date: Re: When will global temp table not be dropped after connection is
- Previous by thread: Re: When will global temp table not be dropped after connection is los
- Next by thread: Re: When will global temp table not be dropped after connection is
- Index(es):
Relevant Pages
|