Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Heterogeneous Query and ANSI_NULLS/_WARNINGS

 
   Database Help (Home) -> Connect RSS
Next:  Wireless Connectivity  
Author Message
Utf-8BVHJveQ

External


Since: Apr 06, 2004
Posts: 3



(Msg. 1) Posted: Fri Apr 09, 2004 4:06 pm
Post subject: Heterogeneous Query and ANSI_NULLS/_WARNINGS
Archived from groups: microsoft>public>sqlserver>connect (more info?)

I'm trying to create a stored proc that creates a link to a remote server and executes
other stored procedures as needed. Each of the sub-procs will be running Heterogeneous Queries.
I'm having trouble creating these sub-procs, I get the error message that states
Heterogeneous Queries require ANSINULLS and ANSIWARNINGS be set...
I have the remote server linked when I try to create the procs.
I've tried SET ANSI_NULLS and _WARNINGS with no effect so I'm assuming these need to be set on the linked server.
I tried EXEC sp_serveroption 'sqlSOLOMON', 'ANSI_NULLS', 'ON'
EXEC sp_serveroption 'sqlSOLOMON', 'ANSI_WARNINGS', 'ON'
but got an 'invalid options' error.

Does this need to be set as server defaults on each server or can I make these settings in a usp?
After the procs are created and I create the link at runtime can I expect some problems?

Any suggestions/links would be greatly appreciated.
I am also an Application developer who gets roped into this DBA stuff as needed. I'm the closest they have here
to a DBA and I cant find any decent answers in 'books on-line' or my books on-desk.

'Ack!'
troy

 >> Stay informed about: Heterogeneous Query and ANSI_NULLS/_WARNINGS 
Back to top
Login to vote
Sue Hoegemeier

External


Since: Aug 26, 2003
Posts: 362



(Msg. 2) Posted: Sat Apr 10, 2004 8:31 pm
Post subject: Re: Heterogeneous Query and ANSI_NULLS/_WARNINGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Troy,
The settings need to be set when you create your stored
procedures - not in the stored procedures but for the
connection creating the stored procedures - so that the
stored procedures are created with these settings. Something
along the lines of:
SET ANSI_NULLS ON
GO
SET ANSI_WARNINGS ON
GO
CREATE PROCEDURE YourStoredProc...etc.

-Sue

On Fri, 9 Apr 2004 13:06:06 -0700, "Troy"
wrote:

 >I'm trying to create a stored proc that creates a link to a remote server and executes
 >other stored procedures as needed. Each of the sub-procs will be running Heterogeneous Queries.
 >I'm having trouble creating these sub-procs, I get the error message that states
 > Heterogeneous Queries require ANSINULLS and ANSIWARNINGS be set...
 >I have the remote server linked when I try to create the procs.
 >I've tried SET ANSI_NULLS and _WARNINGS with no effect so I'm assuming these need to be set on the linked server.
 >I tried EXEC sp_serveroption 'sqlSOLOMON', 'ANSI_NULLS', 'ON'
 > EXEC sp_serveroption 'sqlSOLOMON', 'ANSI_WARNINGS', 'ON'
 >but got an 'invalid options' error.
 >
 >Does this need to be set as server defaults on each server or can I make these settings in a usp?
 >After the procs are created and I create the link at runtime can I expect some problems?
 >
 >Any suggestions/links would be greatly appreciated.
 >I am also an Application developer who gets roped into this DBA stuff as needed. I'm the closest they have here
 >to a DBA and I cant find any decent answers in 'books on-line' or my books on-desk.
 >
 >'Ack!'
 >troy

 >> Stay informed about: Heterogeneous Query and ANSI_NULLS/_WARNINGS 
Back to top
Login to vote
Utf-8BVHJveQ

External


Since: Apr 06, 2004
Posts: 3



(Msg. 3) Posted: Tue Apr 13, 2004 11:51 am
Post subject: Re: Heterogeneous Query and ANSI_NULLS/_WARNINGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
zen69

External


Since: May 16, 2007
Posts: 1



(Msg. 4) Posted: Wed May 16, 2007 10:53 am
Post subject: Re: Heterogeneous Query and ANSI_NULLS/_WARNINGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi all!
I have the same problem with a view I'm trying to use with Crystal
Reports.

I did recreate my view with ANSI_NULL, ANSI_WARNINGS statements but
it's still doesn't work...

How can I solve it please?

Sue Hoegemeier;3612624 Wrote:
> If you have the same issues with a stored procedure, the
> answer is in the post in this thread. You need to create the
> procedure with the appropriate setting e.g.
> SET ANSI_NULLS ON
> GO
> SET ANSI_WARNINGS ON
> GO
> CREATE PROCEDURE YourStoredProc...etc.
>
>
> -Sue
>
> On Mon, 10 Jan 2005 04:45:31 -0600, imalik
> wrote:
>
> >
> >Troy / Sue
> >
> >I'm experiencing the same issue raised in this thread. Sounds like
> you
> >guys figured out what the problem was but the solution is not in this
> >thread. Any chance you can share your wisdom?


--
zen69
 >> Stay informed about: Heterogeneous Query and ANSI_NULLS/_WARNINGS 
Back to top
Login to vote
Sue Hoegemeier

External


Since: Aug 26, 2003
Posts: 362



(Msg. 5) Posted: Wed May 16, 2007 8:15 pm
Post subject: Re: Heterogeneous Query and ANSI_NULLS/_WARNINGS [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm not sure what you mean by trying to use - what is the
datasource? Is it a stored procedure, a query, the view
itself?
What is the exact error message and when/how do you get it?

Whatever you are executing that involves this view in
Crystal, try executing the same thing in a query tool and
see if you get the same message. Take Crystal out of the mix
to start with.

-Sue

On Wed, 16 May 2007 10:53:15 -0500, zen69
wrote:

>
>Hi all!
>I have the same problem with a view I'm trying to use with Crystal
>Reports.
>
>I did recreate my view with ANSI_NULL, ANSI_WARNINGS statements but
>it's still doesn't work...
>
>How can I solve it please?
>
>Sue Hoegemeier;3612624 Wrote:
>> If you have the same issues with a stored procedure, the
>> answer is in the post in this thread. You need to create the
>> procedure with the appropriate setting e.g.
>> SET ANSI_NULLS ON
>> GO
>> SET ANSI_WARNINGS ON
>> GO
>> CREATE PROCEDURE YourStoredProc...etc.
>>
>>
>> -Sue
>>
>> On Mon, 10 Jan 2005 04:45:31 -0600, imalik
>> wrote:
>>
>> >
>> >Troy / Sue
>> >
>> >I'm experiencing the same issue raised in this thread. Sounds like
>> you
>> >guys figured out what the problem was but the solution is not in this
>> >thread. Any chance you can share your wisdom?
 >> Stay informed about: Heterogeneous Query and ANSI_NULLS/_WARNINGS 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Cannot generate SSPI context - Hi All, I am experiencing problems with a remote user (w2k pro,sql 7) attempting to connect and replicate with a Sql Server 7 on NT server. They are receiving 'Cannot generate SSPI context' messages when trying to use a vb app over a vpn. This problem..

connection string does not work for a different server - Hi all, I currently have an ASP .Net project running locally, and accessing a local SQL server 2000 database. The project runs fine since it is able to open the connection to the database, and perform operations on it locally using a connection dtata..

IIS 6 and Windows Authentication to SQL Server 2000 - I am running a Windows Server 2003 machine as my web server. I would like to use Windows authentication for connections to my SQL Server 2000 instance on a Windows 2000 server. I've read where mirroring the ASPNET account and password on the web server...

SSL Security error -ConnectionOpen(SECDoClientHandshake) - Please help. On my default instance of SQL Server 2000, which could be accessed OK with both Windows and SQL server authentication, I now get the error in the subject line above. The message in the error window - in SQL server enterprise manager- suggest...

Connecting client to SQL Server via Cisco VPN - We are having one client PC running Win XP. SQL Server has been set to Windows Authentication, TCP/IP 1433, Windows 2003 (!). Via Cisco VPN we are making a connection. IAS has been configurated, so the local user profile doesn't matter. The server..
   Database Help (Home) -> Connect All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]