Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

problems using linked server.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maria Isabel Guzman - 25 Jul 2008 01:19 GMT
Hi, I am using a store procedure that calls another three store
procedures. Two of them use linked server.

When I run this two store procedures on the query analizer it works
fine, but when I run the store procedures from the application displays
the error:

Msg 7405, Level 16, State 1, Server SERVER1, Procedure SP1, Line 77
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.

I already set the ansi_nulls and ansi_warnings On, but it doesn't work.

Do someone have any idea what should i check or change to make the store
procedures work from the aplication
Dan Guzman - 25 Jul 2008 02:07 GMT
> I already set the ansi_nulls and ansi_warnings On, but it doesn't work.

The ANSI_NULLS (and QUOTED_IDENTIFIER) session settings in effect when a
stored procedure is created are remembered at execute time.  Try creating
the procedures with ANSI_NULLS ON.

Signature

Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

> Hi, I am using a store procedure that calls another three store
> procedures. Two of them use linked server.
[quoted text clipped - 16 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.