Quantcast
Viewing latest article 8
Browse Latest Browse All 20

Linked server issue using isql

We have a job that uses isql and executes a stored procedure. This SP contains a query in which there is a join between the table in one of the database on the current server and one table of a database on a linked server.
When the proc is executed in query analyser, there are no issues.
However, when it runs through the job, it gives the following error:

Msg 7405, Level 16, State 1, Server XXXXXXXXXXX, Procedure XXXXXXXXXXXXX, Line 202
Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query.

Please guide as to how to fix this

Viewing latest article 8
Browse Latest Browse All 20

Trending Articles