Home All Groups Group Topic Archive Search About
Author
17 Sep 2005 6:17 PM
Mark Moss
Gentlemen / Ladies


        How can I check if a Temp Table exists, so that I can drop it?


Mark

Author
17 Sep 2005 6:29 PM
Joe
"Mark Moss" <markm***@adelphia.net> wrote in message
news:%23gukJQ7uFHA.4032@TK2MSFTNGP15.phx.gbl...
>
>        How can I check if a Temp Table exists, so that I can drop it?

If Object_Id('tempdb..#temptable') is Not Null
     Drop table #temptable

HTH.

AddThis Social Bookmark Button