CodeSmith Community
Your Code. Your Way. Faster!

Generated SQL: ANSI NULLS : SET TO OFF BY DEFAULT

Latest post 06-26-2008 1:59 PM by SuperJeffe. 2 replies.
  • 06-26-2008 9:47 AM

    Generated SQL: ANSI NULLS : SET TO OFF BY DEFAULT

    Hi,

    By default .nettiers generates all stored procedures with ANSI NULLS set to OFF. e.g SET ANSI_NULLS OFF

    We are using a SQL Server 2005 Indexed View, which must use  SET ANSI_NULLS ON for any CRUD operations.

    I understand that using ANSI_NULLS OFF specifies SQL-92 compliant behavior of the Equals (=) and Not Equal to (<>) comparison operators when used with null values.

    I was wondering if there was a specific reason (apart from the above) why the generated stored procs are using SET ANSI_NULLS OFF, and if there are any known issues/conflicts if we were to change the base generation code to out stored procs with SET ANSI_NULLS ON.

    Any help/information would very much appricated.

    Thanks in advance.

     

    • Post Points: 35
  • 06-26-2008 11:24 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 924
    • Points 34,750

    Re: Generated SQL: ANSI NULLS : SET TO OFF BY DEFAULT

     We use ANSI NULLS ON with no problems.

    hth

    swin

    ------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
    • Post Points: 35
  • 06-26-2008 1:59 PM In reply to

    • SuperJeffe
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Tulsa, Ok
    • Posts 408
    • Points 10,260

    Re: Generated SQL: ANSI NULLS : SET TO OFF BY DEFAULT

    Dido what swin said.

    jeff

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems