• Paul White NZ (4/7/2010)


    Toreador (4/7/2010)


    Is there any situation where setting ansi_nulls off is a good idea?

    I have never come across one. Apart from the bizarre rules illustrated by the question, ANSI_NULLS OFF is going away in a future version. Attempting to set ANSI_NULLS OFF will generate an error message in that future version. Will be a huge change for some people.

    The only time I can imagine it being useful is when you've inherited a DB with a lot of SQL scattered around embedded in application code that relies on the setting because that's the way it was designed by the IT development team on the Ark.

    If you are lucky, that will never happen to you. I reckon most people will be lucky.

    Edit: just realised there's another use: to run code or get execution plans for QsOTD that specify it:hehe:.

    Tom