You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sp_Blitz.sql
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8731,9 +8731,9 @@ IF @ProductVersionMajor >= 10 AND NOT EXISTS ( SELECT 1
8731
8731
)
8732
8732
BEGIN
8733
8733
/* This needs to be a "dynamic" SQL statement because if the 'instant_file_initialization_enabled' column doesn't exist the procedure might fail on a bind error */
8734
-
SET @StringToExecute =N'SELECT @IFISetting = instant_file_initialization_enabled'+
8735
-
N'FROM sys.dm_server_services'+
8736
-
N'WHERE filename LIKE ''%sqlservr.exe%'''+
8734
+
SET @StringToExecute =N'SELECT @IFISetting = instant_file_initialization_enabled'+ @crlf +
8735
+
N'FROM sys.dm_server_services'+ @crlf +
8736
+
N'WHERE filename LIKE ''%sqlservr.exe%'''+ @crlf +
8737
8737
N'OPTION (RECOMPILE);';
8738
8738
8739
8739
IF @Debug =2AND @StringToExecute ISNOTNULLPRINT @StringToExecute;
0 commit comments