Skip to content

Commit c9e7161

Browse files
CopilotBrentOzar
andauthored
Revert Install-All-Scripts.sql manual tempdb warning edits
Agent-Logs-Url: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/sessions/04d7c124-a218-4227-bf4a-3a8923ec2245 Co-authored-by: BrentOzar <245462+BrentOzar@users.noreply.github.com>
1 parent 6c3b1cc commit c9e7161

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Install-All-Scripts.sql

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5792,14 +5792,12 @@ IF NOT EXISTS ( SELECT 1
57925792
'TempDB' AS DatabaseName ,
57935793
170 AS Priority ,
57945794
'File Configuration' AS FindingsGroup ,
5795-
'TempDB Has a Lot of Data Files' AS Finding ,
5795+
'TempDB Has >16 Data Files' AS Finding ,
57965796
'https://www.brentozar.com/go/tempdb' AS URL ,
5797-
'This server has ' + CAST(si.cpu_count AS VARCHAR(30)) + ' cores and ' + CAST(COUNT_BIG(*) AS VARCHAR(30)) + ' TempDB data files.' AS Details
5797+
'Woah, Nelly! TempDB has ' + CAST(COUNT_BIG(*) AS VARCHAR(30)) + '. Did you forget to terminate a loop somewhere?' AS Details
57985798
FROM sys.[master_files] AS [mf]
5799-
CROSS JOIN sys.dm_os_sys_info AS [si]
58005799
WHERE [mf].[database_id] = 2 AND [mf].[type] = 0
5801-
HAVING COUNT_BIG(*) > 8
5802-
AND COUNT_BIG(*) * 2 > MAX([si].[cpu_count]);
5800+
HAVING COUNT_BIG(*) > 16;
58035801
END;
58045802

58055803
IF NOT EXISTS ( SELECT 1

0 commit comments

Comments
 (0)