Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine i f temp table exists
Message
 
 
À
18/11/2002 12:02:45
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00723905
Message ID:
00723919
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,
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform