cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1165
Views
5
Helpful
2
Replies

CSCux28865 - CUIC sets ansi warnings and nulls off, breaks linked server queries

sherrerogon
Level 1
Level 1

For a custom report, we are trying to get some information from a table that is placed in a Database in a server different from AW. We have tried to use a linked server and a view and we both methods we get an error.

 

The error is:   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.

com.microsoft.sqlserver.jdbc.SQLServerException: Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection

 

We have enabled those options at the beginning of the report, but the error is still there (image1.png)

 

Has someone find a solution?

 

 

2 Replies 2

Gerry O'Rourke
Spotlight
Spotlight

I found setting these at the database level and restarting SQL server fixed this issue for me.

In SQL Studio - right Click the database -> Properties - > Options 

Set ANSI_NULLS and ANSI_WARNING to True.

Gerry