I installed this third party thingy, sp_Blitz
.
sqlcmd -S localhost -U sa -i ./sp_Blitz.sql
But when I run
1> EXEC sp_blitz;
2> go
I get,
Warning: Null value is eliminated by an aggregate or other SET operation
Msg 1934, Level 16, State 1, Server x230, Procedure sp_blitz, Line 4338
INSERT failed because the following SET options have incorrect settings: '
QUOTED_IDENTIFIER
'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.
Attempts at the server
When I try to configure QUOTED_IDENTIFIER
I get,
1> sp_configure 'QUOTED_IDENTIFIER';
2> GO
Msg 15123, Level 16, State 1, Server x230, Procedure sp_configure, Line 62
The configuration option 'QUOTED_IDENTIFIER' does not exist, or it may be an advanced option.
That's having previously run sp_configure 'show advanced options', 1; RECONFIGURE;
Attempts at the client
sqlcmd.exe
Ok.. So sqlcmd.exe
's docs say
-I
Sets theSET QUOTED_IDENTIFIER
connection option toON
. By default, it is set toOFF
. For more information, seeSET QUOTED_IDENTIFIER
(Transact-SQL).
However, running with -I
will show SESSIONPROPERTY('QUOTED_IDENTIFIER')
as 1
but it doesn't seem to work either
sqlcmd -S localhost -U Sa -I
Password:
1> EXEC sp_blitz;
2> GO
Warning: Null value is eliminated by an aggregate or other SET operation.
Msg 1934, Level 16, State 1, Server x230, Procedure sp_blitz, Line 4338
INSERT failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or filtered indexes and/or query notifications and/or XML data type methods and/or spatial index operations.
mssql-cli
This starts up with SESSIONPROPERTY('QUOTED_IDENTIFIER')
set to 1
by default, but it generates the same error as above.