Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine i f temp table exists
Message
De
21/11/2002 13:35:24
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00723905
Message ID:
00725367
Vues:
8
>
IF object_id('tempdb..#MyTable') IS NOT NULL
>  -- #MyTable exists
>
>
>>Hi,
>>
>>What is best way to determine if a temp table (#MyTable) exists prior to running a query against it. Sysobjects in tempdb has them - but lists all for all sessions/users. I need to know if it exists for the current session/user.
>>
>>Thanks,


thanks Sergey ....
Ken B. Matson
GCom2 Solutions
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform