Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine i f temp table exists
Message
 
 
À
21/11/2002 13:35:24
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00723905
Message ID:
00725369
Vues:
10
>>
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 ....

You're welcome.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform