Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Still working on indirection query
Message
De
05/02/2007 10:19:51
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01192348
Message ID:
01192406
Vues:
10
>>>Remove table_w_data from your first query:
>>>
>>>cSQL = 'SELECT @Column2Get3=' + @Column2Get1 + ', @Column2Get4=' + @Column2Get2
>>> .....
>>>

>>
>>When I do I get:
>>
>>"Must declare the variable '@Column2Get3'."
>>
>>which I guess it means a scope problem as it runs in a separate batch.
>
>Sorry, I copy and paste that from your first message, it should be:
>
>cSQL = 'SELECT @Column2Get3Out=' + @Column2Get1 + ', @Column2Get4Out=' + @Column2Get2
>...
>
>
>The variables inside the string must be with the same name as these declared in @ParamDeff


Now I get something working. I have now to retrofit into the more complex Stored Procedure (as this was a simplified examnple).
Thanks.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform