Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Understanding the Implications of ANSI SQL92 SET Options Expand / Collapse
Author
Message
Posted Sunday, October 14, 2001 12:00 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, November 15, 2005 10:26 AM
Points: 2, Visits: 1
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/rgill/understandingtheimplicationsofansisql92setoptions_1.asp


Post #1313
Posted Monday, October 15, 2001 12:53 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, October 15, 2001 12:00 AM
Points: 1, 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.




Post #22476
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse