Skip to content

Commit f8a8b4f

Browse files
committed
Update Diagnostic Information Queries to 2019-07
1 parent c28583c commit f8a8b4f

5 files changed

+23
-14
lines changed

Scripts/SQL Server 2012 Diagnostic Information Queries.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
-- SQL Server 2012 Diagnostic Information Queries
33
-- Glenn Berry
4-
-- Last Modified: June 3, 2019
4+
-- Last Modified: July 9, 2019
55
-- https://www.sqlskills.com/blogs/glenn/
66
-- http://sqlserverperformance.wordpress.com/
77
-- Twitter: GlennAlanBerry

Scripts/SQL Server 2014 Diagnostic Information Queries.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
-- SQL Server 2014 Diagnostic Information Queries
33
-- Glenn Berry
4-
-- Last Modified: June 3, 2019
4+
-- Last Modified: July 9, 2019
55
-- https://www.sqlskills.com/blogs/glenn/
66
-- http://sqlserverperformance.wordpress.com/
77
-- Twitter: GlennAlanBerry

Scripts/SQL Server 2016 Diagnostic Information Queries.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
-- SQL Server 2016 Diagnostic Information Queries
33
-- Glenn Berry
4-
-- Last Modified: June 3, 2019
4+
-- Last Modified: July 12, 2019
55
-- https://www.sqlskills.com/blogs/glenn/
66
-- http://sqlserverperformance.wordpress.com/
77
-- Twitter: GlennAlanBerry
@@ -245,6 +245,9 @@ EXEC sys.xp_readerrorlog 0, 1, N'Database Instant File Initialization';
245245
-- This should be enabled in the vast majority of cases
246246
-- SQL Server 2016 lets you enable this during the SQL server installation process
247247

248+
-- Note: This query won't return any results if the SQL Server error log has been recycled
249+
-- Query 8 has a instant_file_initialization_enabled column that will show the status of IFI (if you have SP1 or later)
250+
248251
-- Database Instant File Initialization
249252
-- https://bit.ly/2nTX74y
250253

Scripts/SQL Server 2016 SP2 Diagnostic Information Queries.sql

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
-- SQL Server 2016 SP2 Diagnostic Information Queries
33
-- Glenn Berry
4-
-- Last Modified: June 3, 2019
4+
-- Last Modified: July 12, 2019
55
-- https://www.sqlskills.com/blogs/glenn/
66
-- http://sqlserverperformance.wordpress.com/
77
-- Twitter: GlennAlanBerry
@@ -63,15 +63,16 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
6363
------
6464

6565
-- SQL Server 2016 Builds
66-
-- Build Description Release Date URL to KB Article
67-
-- 13.0.5026.0 SP2 RTM 4/24/2018 https://bit.ly/2FEvN2q
68-
-- 13.0.5149.0 SP2 CU1 5/30/2018 https://support.microsoft.com/en-us/help/4135048/cumulative-update-1-for-sql-server-2016-sp2
69-
-- 13.0.5153.0 SP2 CU2 7/16/2018 https://support.microsoft.com/en-us/help/4340355
70-
-- 13.0.5216.0 SP2 CU3 9/20/2018 https://support.microsoft.com/en-us/help/4458871
71-
-- 13.0.5233.0 SP2 CU4 11/13/2018 https://support.microsoft.com/en-us/help/4464106/cumulative-update-4-for-sql-server-2016-sp2
72-
-- 13.0.5264.1 SP2 CU5 1/23/2019 https://support.microsoft.com/en-us/help/4475776/cumulative-update-5-for-sql-server-2016-sp2
73-
-- 13.0.5292.0 SP2 CU6 3/19/2019 https://support.microsoft.com/en-us/help/4488536/cumulative-update-6-for-sql-server-2016-sp2
74-
-- 13.0.5337.0 SP2 CU7 5/22/2019 https://support.microsoft.com/en-us/help/4495256/cumulative-update-7-for-sql-server-2016-sp2
66+
-- Build Description Release Date URL to KB Article
67+
-- 13.0.5026.0 SP2 RTM 4/24/2018 https://bit.ly/2FEvN2q
68+
-- 13.0.5149.0 SP2 CU1 5/30/2018 https://support.microsoft.com/en-us/help/4135048/cumulative-update-1-for-sql-server-2016-sp2
69+
-- 13.0.5153.0 SP2 CU2 7/16/2018 https://support.microsoft.com/en-us/help/4340355
70+
-- 13.0.5216.0 SP2 CU3 9/20/2018 https://support.microsoft.com/en-us/help/4458871
71+
-- 13.0.5233.0 SP2 CU4 11/13/2018 https://support.microsoft.com/en-us/help/4464106/cumulative-update-4-for-sql-server-2016-sp2
72+
-- 13.0.5264.1 SP2 CU5 1/23/2019 https://support.microsoft.com/en-us/help/4475776/cumulative-update-5-for-sql-server-2016-sp2
73+
-- 13.0.5292.0 SP2 CU6 3/19/2019 https://support.microsoft.com/en-us/help/4488536/cumulative-update-6-for-sql-server-2016-sp2
74+
-- 13.0.5337.0 SP2 CU7 5/22/2019 https://support.microsoft.com/en-us/help/4495256/cumulative-update-7-for-sql-server-2016-sp2
75+
-- 13.0.5366.0 SP2 CU7 + Security Update 7/9/2019 https://support.microsoft.com/en-us/help/4505222/security-update-for-sql-server-2016-sp2-cu7-gdr-july-9-2019
7576

7677

7778

@@ -220,6 +221,10 @@ EXEC sys.xp_readerrorlog 0, 1, N'Database Instant File Initialization';
220221
-- This should be enabled in the vast majority of cases
221222
-- SQL Server 2016 and newer lets you enable this during the SQL server installation process
222223

224+
-- Note: This query won't return any results if the SQL Server error log has been recycled
225+
-- Query 8 has a instant_file_initialization_enabled column that will show the status of IFI
226+
227+
223228
-- Database Instant File Initialization
224229
-- https://bit.ly/2nTX74y
225230

Scripts/SQL Server 2017 Diagnostic Information Queries.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
-- SQL Server 2017 Diagnostic Information Queries
33
-- Glenn Berry
4-
-- Last Modified: June 3, 2019
4+
-- Last Modified: July 9, 2019
55
-- https://www.sqlskills.com/blogs/glenn/
66
-- http://sqlserverperformance.wordpress.com/
77
-- Twitter: GlennAlanBerry
@@ -85,6 +85,7 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
8585
-- 14.0.3076.1 CU14 3/25/2019 https://support.microsoft.com/en-us/help/4484710/cumulative-update-14-for-sql-server-2017
8686
-- 14.0.3103.1 CU14 + Security Update 5/14/2019 https://support.microsoft.com/en-us/help/4494352/security-update-for-sql-server-2017-cu-14-gdr-may-14-2019
8787
-- 14.0.3162.1 CU15 5/23/2019 https://support.microsoft.com/en-us/help/4498951/cumulative-update-15-for-sql-server-2017
88+
-- 14.0.3192.2 CU15 + Security Update 7/9/2019 https://support.microsoft.com/en-us/help/4505225/security-update-for-sql-server-2017-cu15-gdr-july-9-2019
8889

8990

9091

0 commit comments

Comments
 (0)