Skip to content
Advertisement

Openquery error ‘Incorrect Syntax near keyword Transaction’

I have a stored procedure that uses openquery to fetch data from a table in a linked server. I need to pass a parameter in the query, so it as below

The error is get however is,
Incorrect syntax near the keyword ‘Transaction’.

What am I doing wrong?

Advertisement

Answer

Try this:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement