General information
Title:
Using OPENQUERY with a parameter
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
'
)
Any help is appreciated
Thanks
Carmel
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only