ā08-03-2020 07:09 AM
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?
ā09-01-2020 07:52 AM
ā06-23-2023 02:51 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide