473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

ANSI_NULLS and ANSI_WARNINGS

------=_NextPart_000_002B_01C34718.7E9AFEA0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Greetings to all,

Using a SELECT Statement, I am trying to pull information from two
separate databases. The query is being run from the database entitled
NETWORK and the other database is called DB1. The result set will be
displayed to a webpage using PHP in a table format. The problem is when
the page runs an error comes up concerning ANSI_NULLS and ANSI_WARNINGS.
The error is as follows:

Warning: MS SQL message: 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. (severity 16)

After doing some research I found some information about setting
ANSI_NULLS and ANSI_WARNINGS to "on". However, when I do this it does
not work. The format I was given was.

SET ANSI_NULLS on;
SET ANSI_WARNINGS on;
GO;
CREATE PROCUDURE..

I am not using a procedure. I am using a SELECT Statement. If I add the
"GO" line, in the order listed above, to the code I get an error stating
that GO is not recognized. When I add both SET commands, in the order
listed above and without GO, I get the same WARNING that is listed
above.

Any help in this matter would be appreciated. Thank you in advance for
your assistance.
Jef
------=_NextPart_000_002B_01C34718.7E9AFEA0--

Jul 19 '05 #1
0 5332

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt Rink | last post by:
Getting an "incorrect settings: 'ANSI_NULLS., QUOTED_IDENTIFIER'." error after creating a view. We wanted a composite unique constraint that ignored nulls, so we set up a view using the...
1
by: A.M. de Jong | last post by:
When I perform a query on a linked Oracle server in the Query analyser I have no prboblem' to perform this query. However, when I create this query in a stored procedure I get a compilation error...
3
by: David Sharp | last post by:
I'm working with some long standing VB/SQL Server applications and for the second time we've suffered from having the parameters to a stored procedure call get silently truncated now that the data...
4
by: Saul Margolis | last post by:
Hi All, I'm converting some stored procs from Sybase to SQL Server, and I'm having serious problems with Null comparisons. When I run the code below on Sybase, it returns both rows. When I...
2
by: Adnan | last post by:
Hi Guys, I have one stored procedure on SQL 6.5 and retrieving data from SQL 2000. I have defined a linked server on SQL 6.5. But I am getting following error:- "Heterogeneous queries require...
1
by: nate.hughes | last post by:
Ok, here's my dilemma. We're running SQL Server 2000 with the default db setting for the ANSI_WARNINGS option set to off. However, we still get "Warning: Null value is eliminated by an aggregate...
0
by: nate.hughes | last post by:
Ok, here's my dilemma. We're running SQL Server 2000 with the default db setting for the ANSI_WARNINGS option set to off. However, we still get "Warning: Null value is eliminated by an aggregate...
5
by: Laurie Murphy | last post by:
I have been researching this problem for a week now and I haven't found anything that works. Here is the problem: We recently removed the SET ANSI_WARNINGS OFF code at the top of all of our triggers...
1
by: Ted | last post by:
does anyone know how to keep QA from adding the lines setting these two options on and off along with blank lines at the beginning and end of every object you edit? i have searched quite a bit on...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.