Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using OPENQUERY with a parameter
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01010162
Message ID:
01010166
Views:
28
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform