Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using OPENQUERY with a parameter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01010162
Message ID:
01010166
Vues:
30
The OPENQUERY() doesn't support parameters. You can build whole query as a string and run with EXCEUTE statement.

>How do I use a parameter within an OPENQUERY
>
>THIS WORKS
>select * from openquery(VFP2,
>'
>select * from arcust
>)
>
>
>
>
>NOW I WANT TO INCOPORATE A PARAMETER - DOES NOT WORK
>
>declare @id varchar(10)
>select @id = "54440"
>
>select * from openquery(VFP2,
>'
>select * from arcust where ccustno=@id
>'
>)
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform