Set ANSI_NULLS off / on changes the results.
By default in database settings it is set to OFF.
But in SSMS --> Tools --> Options, go to Query Execution --> SQL Server --> ANSI Tab. Here it is set to On. Means, for the query editor window, settings is set to On BY DEFAULT.
Bit Confusing. 🙂
And I go the point.