Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where are my temporary tables?
Message
De
20/12/2004 16:34:03
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Divers
Thread ID:
00970374
Message ID:
00970824
Vues:
18
Hi Sergey,

>You can use OBJECT_ID() function
IF OBJECT_ID('tempdb..#mytemptable')IS NOT Null
>  -- Temp.table exists
>  DROP TABLE mytemptable
>
Thanks for that, I'll note it for future use. I have since discovered that I can view what temporary tables are open during a T-SQL session by inspecting the contents of SysObjects in the TempDb database.

Regards,
Alan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform