If anyone can assist with this issue, I’d be most grateful. I’ve been struggling with it for too long now, and can’t seem to resolve.
I have an SSDT project (VS2012, SQL2008) with stored procedures that reference a linked server.
The project builds successfully
When attempting to deploy, with either (localdb) or “regular” SQL Server, using either F5 or Schema Compare, deployment fails because the linked server isn’t defined in the target
After defining the linked server, the project still fails to deploy any stored procedure that references the linked server with:
Error 200 SQL72014: .Net SqlClient Data Provider: Msg 7405, Level 16, State 1, Procedure usp_MemEligGetFullData, Line 157 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.
Adding SET ANSI_NULL ON and SET ANSI_WARNINGS ON to these stored procedures doesn’t help, nor does selecting the corresponding checkboxes in the database settings of the project properties.
This is a blocking issue for an entire team in an enterprise environment, so again, if anyone has any ideas about why this is happening, I would most appreciate it!