Skip to content
Permalink
Browse files

1.0.31

  • Loading branch information...
potatoqualitee committed Aug 14, 2019
1 parent b3f6236 commit ade8aae11d8022c592ec708b3e7251f6251e8fc4
Showing with 2,764 additions and 157 deletions.
  1. +633 βˆ’134 allcommands.ps1
  2. +321 βˆ’5 bin/dbatools-index.json
  3. 0 ...icquery/{SQLServerDiagnosticQueries_2005_201906.sql β†’ SQLServerDiagnosticQueries_2005_201907.sql}
  4. 0 ...ery/{SQLServerDiagnosticQueries_2008R2_201906.sql β†’ SQLServerDiagnosticQueries_2008R2_201907.sql}
  5. 0 ...icquery/{SQLServerDiagnosticQueries_2008_201906.sql β†’ SQLServerDiagnosticQueries_2008_201907.sql}
  6. 0 ...icquery/{SQLServerDiagnosticQueries_2012_201906.sql β†’ SQLServerDiagnosticQueries_2012_201907.sql}
  7. +3 βˆ’2 ...icquery/{SQLServerDiagnosticQueries_2014_201906.sql β†’ SQLServerDiagnosticQueries_2014_201907.sql}
  8. +9 βˆ’2 ...y/{SQLServerDiagnosticQueries_2016SP2_201906.sql β†’ SQLServerDiagnosticQueries_2016SP2_201907.sql}
  9. +8 βˆ’1 ...icquery/{SQLServerDiagnosticQueries_2016_201906.sql β†’ SQLServerDiagnosticQueries_2016_201907.sql}
  10. +11 βˆ’3 ...icquery/{SQLServerDiagnosticQueries_2017_201906.sql β†’ SQLServerDiagnosticQueries_2017_201907.sql}
  11. +7 βˆ’1 ...icquery/{SQLServerDiagnosticQueries_2019_201906.sql β†’ SQLServerDiagnosticQueries_2019_201907.sql}
  12. 0 ...sticQueries_AzureSQLDatabase_201906.sql β†’ SQLServerDiagnosticQueries_AzureSQLDatabase_201907.sql}
  13. BIN bin/diagnosticquery/SQLServerDiagnosticQueries_SQLManagedInstanceDiagnosticResults_201907.sql
  14. +1,691 βˆ’0 bin/diagnosticquery/SQLServerDiagnosticQueries_SQLManagedInstance_201907.sql
  15. +2 βˆ’0 dbatools.psd1
  16. +3 βˆ’1 dbatools.psm1
  17. +76 βˆ’8 en-us/dbatools-help.xml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1,7 +1,7 @@

-- SQL Server 2014 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 15, 2019
-- Last Modified: August 1, 2019
-- https://www.sqlskills.com/blogs/glenn/
-- http://sqlserverperformance.wordpress.com/
-- Twitter: GlennAlanBerry
@@ -84,7 +84,7 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 12.0.4502 SP1 CU11 2/21/2017 12.0.5540 SP2 CU4 2/21/2017
-- 12.0.4511 SP1 CU12 4/17/2017 12.0.5546 SP2 CU5 4/17/2017
-- 12.0.4522 SP1 CU13 7/17/2017 12.0.5552 SP2 CU6 7/17/2017
-- 12.0.5556 SP2 CU7 8/28/2017
-- 12.0.5556 SP2 CU7 8/28/2017
-- 12.0.5557 SP2 CU8 10/16/2017
-- 12.0.5563 SP2 CU9 12/18/2017
-- 12.0.5571 SP2 CU10 1/16/2018
@@ -96,6 +96,7 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 12.0.5605 SP2 CU15 12/12/2018 ----> 12.0.6205 SP3 CU1 12/12/2018
-- 12.0.5626 SP2 CU16 2/19/2019 ----> 12.0.6214 SP3 CU2 2/19/2019
-- 12.0.5632 SP2 CU17 4/16/2019 ----> 12.0.6259 SP3 CU3 4/16/2019
-- 12.0.5687 SP2 CU18 7/29/2019 ----> 12.0.6329 SP3 CU4 7/29/2019



@@ -1,7 +1,7 @@

-- SQL Server 2016 SP2 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 15, 2019
-- Last Modified: August 8, 2019
-- https://www.sqlskills.com/blogs/glenn/
-- http://sqlserverperformance.wordpress.com/
-- Twitter: GlennAlanBerry
@@ -72,7 +72,8 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 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
-- 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
-- 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
-- 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
-- 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
-- 13.0.5426.0 SP2 CU8 7/31/2019 https://support.microsoft.com/en-us/help/4505830/cumulative-update-8-for-sql-server-2016-sp2



@@ -199,6 +200,12 @@ DBCC TRACESTATUS (-1);
-- TF 6534 - Enables use of native code to improve performance with spatial data
-- https://bit.ly/2HrQUpU

-- TF 7745 - Prevents Query Store data from being written to disk in case of a failover or shutdown command
-- https://bit.ly/2GU69Km

-- TF 7752 - Enables asynchronous load of Query Store
-- This allows a database to become online and queries to be executed before the Query Store has been fully recovered

-- The behavior of TF 1117, 1118 are enabled for tempdb in SQL Server 2016 by default
-- SQL 2016 Β– It Just Runs Faster: -T1117 and -T1118 changes for TEMPDB and user databases
-- https://bit.ly/2lbNWxK
@@ -1,7 +1,7 @@

-- SQL Server 2016 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 15, 2019
-- Last Modified: August 8, 2019
-- https://www.sqlskills.com/blogs/glenn/
-- http://sqlserverperformance.wordpress.com/
-- Twitter: GlennAlanBerry
@@ -90,6 +90,7 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 13.0.4550.1 SP1 CU13 1/23/2019 ----> 13.0.5264.1 SP2 CU5 1/23/2019
-- 13.0.4560.0 SP1 CU14 3/19/2019 ----> 13.0.5292.0 SP2 CU6 3/19/2019
-- 13.0.4574.0 SP1 CU15 5/16/2019 ----> 13.0.5337.0 SP2 CU7 5/22/2019
-- 13.0.5426.0 SP2 CU8 7/31/2019


-- How to determine the version, edition and update level of SQL Server and its components
@@ -223,6 +224,12 @@ DBCC TRACESTATUS (-1);
-- TF 6534 - Enables use of native code to improve performance with spatial data
-- https://bit.ly/2HrQUpU

-- TF 7745 - Prevents Query Store data from being written to disk in case of a failover or shutdown command
-- https://bit.ly/2GU69Km

-- TF 7752 - Enables asynchronous load of Query Store
-- This allows a database to become online and queries to be executed before the Query Store has been fully recovered

-- The behavior of TF 1117, 1118 are enabled for tempdb in SQL Server 2016 by default
-- SQL 2016 Β– It Just Runs Faster: -T1117 and -T1118 changes for TEMPDB and user databases
-- https://bit.ly/2lbNWxK
@@ -1,7 +1,7 @@

-- SQL Server 2017 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 15, 2019
-- Last Modified: August 8, 2019
-- https://www.sqlskills.com/blogs/glenn/
-- http://sqlserverperformance.wordpress.com/
-- Twitter: GlennAlanBerry
@@ -85,7 +85,8 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In
-- 14.0.3076.1 CU14 3/25/2019 https://support.microsoft.com/en-us/help/4484710/cumulative-update-14-for-sql-server-2017
-- 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
-- 14.0.3162.1 CU15 5/23/2019 https://support.microsoft.com/en-us/help/4498951/cumulative-update-15-for-sql-server-2017
-- 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
-- 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
-- 14.0.3223.3 CU16 8/1/2019 https://support.microsoft.com/en-us/help/4508218/cumulative-update-16-for-sql-server-2017



@@ -220,6 +221,13 @@ DBCC TRACESTATUS (-1);
-- TF 6534 - Enables use of native code to improve performance with spatial data
-- https://bit.ly/2HrQUpU

-- TF 7745 - Prevents Query Store data from being written to disk in case of a failover or shutdown command
-- https://bit.ly/2GU69Km

-- TF 7752 - Enables asynchronous load of Query Store
-- This allows a database to become online and queries to be executed before the Query Store has been fully recovered


-- The behavior of TF 1117, 1118 are enabled for tempdb in SQL Server 2016 by default
-- SQL 2016 Β– It Just Runs Faster: -T1117 and -T1118 changes for TEMPDB and user databases
-- https://bit.ly/2lbNWxK
@@ -1481,7 +1489,7 @@ qs.total_elapsed_time, qs.total_elapsed_time/qs.execution_count AS [avg_elapsed_
CASE WHEN CONVERT(nvarchar(max), qp.query_plan) LIKE N'%<MissingIndexes>%' THEN 1 ELSE 0 END AS [Has Missing Index],
FORMAT(qs.last_execution_time, 'yyyy-MM-dd HH:mm:ss', 'en-US') AS [Last Execution Time],
FORMAT(qs.cached_time, 'yyyy-MM-dd HH:mm:ss', 'en-US') AS [Plan Cached Time]
-- ,qp.query_plan AS [Query Plan] -- Uncomment if you want the Query Plan
,qp.query_plan AS [Query Plan] -- Uncomment if you want the Query Plan
FROM sys.procedures AS p WITH (NOLOCK)
INNER JOIN sys.dm_exec_procedure_stats AS qs WITH (NOLOCK)
ON p.[object_id] = qs.[object_id]
@@ -1,7 +1,7 @@

-- SQL Server 2019 Diagnostic Information Queries
-- Glenn Berry
-- Last Modified: July 15, 2019
-- Last Modified: August 8, 2019
-- https://www.sqlskills.com/blogs/glenn/
-- http://sqlserverperformance.wordpress.com/
-- Twitter: GlennAlanBerry
@@ -186,6 +186,12 @@ DBCC TRACESTATUS (-1);
-- TF 6534 - Enables use of native code to improve performance with spatial data
-- https://bit.ly/2HrQUpU

-- TF 7745 - Prevents Query Store data from being written to disk in case of a failover or shutdown command
-- https://bit.ly/2GU69Km

-- TF 7752 - Enables asynchronous load of Query Store.
-- This allows a database to become online and queries to be executed before the Query Store has been fully recovered

-- The behavior of TF 1117, 1118 are enabled for tempdb in SQL Server 2016 by default
-- SQL 2016 Β– It Just Runs Faster: -T1117 and -T1118 changes for TEMPDB and user databases
-- https://bit.ly/2lbNWxK
Binary file not shown.

0 comments on commit ade8aae

Please sign in to comment.
You can’t perform that action at this time.