Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Error 7405 - Heterogeneous queries require the ANSI_NULLS

Status
Not open for further replies.

dariopowell

Programmer
Jun 15, 2004
14
US
I am trying to write and save a stored procedure but I keep getting the folling error.

Error 7405 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.

The ANSI_NULLS and ANSI_WARNINGS are turned on in the properties on the connections tab for the server in question.

The code does a simple create table and then populates that table from other existing tables. The queary never needs to leave the Server in question and access another server.

NOTE: The query runs fine in Query Analyzer.

Any ideas would be greatly appreciated.

Thanks!!
 
Don't answer in this thread, since this question was double-posted. Instead, see thread183-861231.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top