MarkusJ_NZ
3/27/2007 3:56:00 AM
On Mar 27, 12:42 pm, "TheSQLGuru" <kgbo...@earthlink.net> wrote:
> You might be surprised what the very sharp people on this forum can do to
> avoid temp tables, remove cursors, etc. I agree with Celko - show us some
> code/schema!
>
> To directly answer your point, yes, you should explicity drop all temp
> tables.
>
> Also, can you use table variables instead? They can have much better
> performance in some cases.
>
> --
> TheSQLGuru
> President
> Indicium Resources, Inc.
>
> <Markus...@gmail.com> wrote in message
>
> news:1174952959.904919.115730@b75g2000hsg.googlegroups.com...
>
>
>
> > Hi, I have some temp tables inside a stored procedure. Is it good
> > practice to explicitly drop these temp tables at the end of the stored
> > procedure or will MSSQL drop them for me?
>
> > Obviously, best practice would not to have temp tables in the first
> > place but I am unable to avoid this scenario.
>
> > Cheers
> > Markus- Hide quoted text -
>
> - Show quoted text -
Hi all, thanks for your help everyone. They are just #temp tables,
I'll see what I can come up with in regards to MSSQL and post it here.
Thanks
Markus