In the database options, the ANSI NULLS Enabled option is set to false. I can further confirm this by running:
SELECT DATABASEPROPERTYEX('mydb', 'IsAnsiNullsEnabled') which gives me 0.
Interestingly, whenever I open a new query window from the same database and run this:
IF (NULL = NULL) BEGIN print 'true' END ELSE begin PRINT 'false' END it gives me 'false' every time. It only gives me 'true' if I manually turn ansi_nulls off by running:
SET ANSI_NULLS OFF Why is this?