Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select @var = EXEC(@stmt)
Message
De
08/06/2009 15:54:59
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01404537
Message ID:
01404545
Vues:
30
I think this will take care of it. Thank you again Naomi.

>>Please tell me what is wrong with this. I was sure that I used this syntax before. What would be a better way to do this??
>>
>>
>>		SET @SQLCmd = 'SELECT TOP 1 [name] FROM ' + QUOTENAME(@DBName) + 
>>		'.sys.all_objects where object_id = '+ CAST (@objectID AS VARCHAR(15))
>>		SET @TblName = EXEC (@SQLCmd)
>>
>>
>>Your help is appreciated.
>
>See also FAQ #8130
Thank You

Rollin Burr

Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform