SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Understanding the Implications of ANSI SQL92 SET Options


Understanding the Implications of ANSI SQL92 SET Options

Author
Message
RajGill
RajGill
Forum Newbie
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)

Group: General Forum Members
Points: 8 Visits: 1
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/rgill/understandingtheimplicationsofansisql92setoptions_1.asp



chrissql
chrissql
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 1
SQL Server 2000 has a bug that turns ANSI_NULLS OFF before creating a stored procedure. If you query a linked server from your stored procedure, you get ERROR 7405 which complains that ANSI_NULLS needs to be set ON. Well, you try to set it ON prior to creating the stored procedure, but Enterprise Manager turns it back OFF when you go to create your stored procedure. And, you can not SET the value after the stored procedure is created - the stored procedure captures whatever setting was in effect at time of procedure creation. The solution is to add the lines SET ANSI_NULLS ON and GO prior to the CREATE stored procedure statement in your stored procedure. The statements will disappear after the stored procedure has been created. See Microsoft Knowledge Base article ID Q296769.



Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search