DBCC USEROPTIONS
SELECT SESSIONPROPERTY('QUOTED_IDENTIFIER') quotedidentifier
SELECT SESSIONPROPERTY('ANSI_NULLS') ANSI_NULLS