Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible
Message
De
19/04/2001 23:24:37
Dave Sonier
Technologies Nter inc.
Gatineau, Québec, Canada
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Is it possible
Divers
Thread ID:
00497701
Message ID:
00497701
Vues:
44
Hi,

I got a error code message when i run that code in Query Analyzer! Why ? is it possible to use a concatenation in exists function ?

Thank in advance...

Here's the code:
===============================================================
declare @gTableName varchar(1024)
declare @gUser varchar(30)
declare @gBdTmp varchar(50)

set @gBdTmp = (select VALUE from SYST_PARAM Where CD_PARAM = « BD_TEMP »)

set @gUser = user
set @gTableName = @gBdTmp + « . » + @gUser + « .Table1 »


if exists ( « select * from « + @gBdTmp + « ..sysobjects where id =
object_id(« + @gTableName + « ) »)

exec (« drop table « + @gTableName)
=================================================================
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform