Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible
Message
De
20/04/2001 08:02:17
Christian Bellavance
Université du Québec à Hull
Hull, Québec, Canada
 
 
À
19/04/2001 23:24:37
Dave Sonier
Technologies Nter inc.
Gatineau, Québec, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00497701
Message ID:
00497779
Vues:
10
It will work if you put all the if code in a exec statement.

exec('if exists (select * from ' + @gBdTmp + '..sysobjects where id =
object_id(' + @gTableName + ')
exec (drop table ' + @gTableName + ')
else
something else')

If you have a lot of code in the if, it will be hard to maintain but it will work.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform