I am trying to send an openquery statement to an ingres database. My code is :-
SELECT * FROM OPENQUERY(CCODDEV,'select surname,forename from person where emp_no ='+@eno+'')
where @eno is declared up above it. It's complaining about the + sign (Incorrect syntax near +) and I can't see why.
Any suggestions????
cheers
Sandra
SELECT * FROM OPENQUERY(CCODDEV,'select surname,forename from person where emp_no ='+@eno+'')
where @eno is declared up above it. It's complaining about the + sign (Incorrect syntax near +) and I can't see why.
Any suggestions????
cheers
Sandra