My understanding is that it remains for the life of the connection so if I
execute the sp again from the same connection the temp table will still
exist.
In SQL 2000 I resolve this by putting a DROP TABLE inside my SP.
However it seems that on SQL 7 this its not valid to have a DROP TABLE
inside in SP.
Is there a way to accommodate both SQL 2000 and SQL 7 ?
Thanks.
--
Michael Tissington
Oaklodge Technologies
http://www.oaklodge.com/technology
A temp table created OUTSIDE a stored procedure will exist for the life of
the connection, or until it is dropped.
HTH
--
Kalen Delaney
SQL Server MVP
www.SolidQualityLearning.com
"Michael Tissington" <mic...@nospam.com> wrote in message
news:#tYPj1d6...@TK2MSFTNGP12.phx.gbl...
--
Thanks,
Vinod Kumar
MCSE, DBA, MCAD
"Kalen Delaney"
<kalen_please_reply_on_p...@compuserve.com> wrote in
message news:engTmPe6...@TK2MSFTNGP12.phx.gbl...
--
Michael Tissington
Oaklodge Technologies
http://www.oaklodge.com/technology
"Kalen Delaney"
<kalen_please_reply_on_p...@compuserve.com> wrote in
message news:engTmPe6...@TK2MSFTNGP12.phx.gbl...
--
Tibor Karaszi, SQL Server MVP
For help on TSQL, please provide code we can execute in Query Analyzer
"Michael Tissington" <mic...@nospam.com> wrote in message
news:OixvNco6...@TK2MSFTNGP11.phx.gbl...