From 4ba5a9d1fb807d9d4970c91d3523a5c8ae98b2da Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Thu, 22 Nov 2018 15:10:05 +0100 Subject: [PATCH 1/2] remove unused DLLs (#4632) From 1dedc780a0d104b30dcf3fbafb30dfc47b955aec Mon Sep 17 00:00:00 2001 From: Chrissy LeMaire Date: Thu, 22 Nov 2018 15:31:04 +0100 Subject: [PATCH 2/2] 0.9.521 --- ...ql => SQLServerDiagnosticQueries_2005_201810.sql} | 0 ... => SQLServerDiagnosticQueries_2008R2_201810.sql} | 6 ++++-- ...ql => SQLServerDiagnosticQueries_2008_201810.sql} | 6 ++++-- ...ql => SQLServerDiagnosticQueries_2012_201810.sql} | 5 +++-- ...ql => SQLServerDiagnosticQueries_2014_201810.sql} | 5 +++-- ...=> SQLServerDiagnosticQueries_2016SP2_201810.sql} | 10 ++++++---- ...ql => SQLServerDiagnosticQueries_2016_201810.sql} | 6 ++++-- ...ql => SQLServerDiagnosticQueries_2017_201810.sql} | 8 +++++--- ...verDiagnosticQueries_AzureSQLDatabase_201810.sql} | 0 changelog.md | 12 ++++++++++++ dbatools.psd1 | 4 ++-- 11 files changed, 43 insertions(+), 19 deletions(-) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2005_201809.sql => SQLServerDiagnosticQueries_2005_201810.sql} (100%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2008R2_201809.sql => SQLServerDiagnosticQueries_2008R2_201810.sql} (99%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2008_201809.sql => SQLServerDiagnosticQueries_2008_201810.sql} (99%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2012_201809.sql => SQLServerDiagnosticQueries_2012_201810.sql} (99%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2014_201809.sql => SQLServerDiagnosticQueries_2014_201810.sql} (99%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2016SP2_201809.sql => SQLServerDiagnosticQueries_2016SP2_201810.sql} (99%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2016_201809.sql => SQLServerDiagnosticQueries_2016_201810.sql} (99%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_2017_201809.sql => SQLServerDiagnosticQueries_2017_201810.sql} (99%) rename bin/diagnosticquery/{SQLServerDiagnosticQueries_AzureSQLDatabase_201809.sql => SQLServerDiagnosticQueries_AzureSQLDatabase_201810.sql} (100%) create mode 100644 changelog.md diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2005_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2005_201810.sql similarity index 100% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2005_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2005_201810.sql diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2_201810.sql similarity index 99% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2_201810.sql index e1bbbbd19a..648780637b 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2_201809.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2_201810.sql @@ -1,7 +1,7 @@ -- SQL Server 2008 R2 Diagnostic Information Queries -- Glenn Berry --- Last Modified: July 10, 2018 +-- Last Modified: November 11, 2018 -- https://www.sqlserverperformance.wordpress.com/ -- https://www.sqlskills.com/blogs/glenn/ -- Twitter: GlennAlanBerry @@ -252,7 +252,9 @@ WHERE node_state_desc <> N'ONLINE DAC' OPTION (RECOMPILE); SELECT cpu_count AS [Logical CPU Count], hyperthread_ratio AS [Hyperthread Ratio], cpu_count/hyperthread_ratio AS [Physical CPU Count], physical_memory_in_bytes/1048576 AS [Physical Memory (MB)], -sqlserver_start_time, affinity_type_desc +sqlserver_start_time, +DATEDIFF(hour, sqlserver_start_time, GETDATE()) AS [SQL Server Up Time (hrs)], +affinity_type_desc FROM sys.dm_os_sys_info WITH (NOLOCK) OPTION (RECOMPILE); ------ diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2008_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2008_201810.sql similarity index 99% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2008_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2008_201810.sql index abd4525238..4ed1d7c396 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2008_201809.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2008_201810.sql @@ -1,7 +1,7 @@ -- SQL Server 2008 Diagnostic Information Queries -- Glenn Berry --- Last Modified: July 5, 2018 +-- Last Modified: November 11, 2018 -- https://sqlserverperformance.wordpress.com/ -- https://www.sqlskills.com/blogs/glenn/ -- Twitter: GlennAlanBerry @@ -213,7 +213,9 @@ WHERE node_state_desc <> N'ONLINE DAC' OPTION (RECOMPILE); -- (Cannot distinguish between HT and multi-core) SELECT cpu_count AS [Logical CPU Count], hyperthread_ratio AS [Hyperthread Ratio], cpu_count/hyperthread_ratio AS [Physical CPU Count], -physical_memory_in_bytes/1048576 AS [Physical Memory (MB)], sqlserver_start_time +physical_memory_in_bytes/1048576 AS [Physical Memory (MB)], +sqlserver_start_time, +DATEDIFF(hour, sqlserver_start_time, GETDATE()) AS [SQL Server Up Time (hrs)] FROM sys.dm_os_sys_info WITH (NOLOCK) OPTION (RECOMPILE); ------ diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2012_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2012_201810.sql similarity index 99% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2012_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2012_201810.sql index 3cd691cfc0..e4725644ba 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2012_201809.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2012_201810.sql @@ -1,7 +1,7 @@ -- SQL Server 2012 Diagnostic Information Queries -- Glenn Berry --- Last Modified: October 24, 2018 +-- Last Modified: November 11, 2018 -- https://www.sqlskills.com/blogs/glenn/ -- http://sqlserverperformance.wordpress.com/ -- Twitter: GlennAlanBerry @@ -478,7 +478,8 @@ SELECT cpu_count AS [Logical CPU Count], scheduler_count, committed_target_kb/1024 AS [Committed Target Memory (MB)], max_workers_count AS [Max Workers Count], affinity_type_desc AS [Affinity Type], - sqlserver_start_time AS [SQL Server Start Time], + sqlserver_start_time AS [SQL Server Start Time], + DATEDIFF(hour, sqlserver_start_time, GETDATE()) AS [SQL Server Up Time (hrs)], virtual_machine_type_desc AS [Virtual Machine Type] FROM sys.dm_os_sys_info WITH (NOLOCK) OPTION (RECOMPILE); ------ diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2014_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2014_201810.sql similarity index 99% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2014_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2014_201810.sql index 13dc768529..184075f1c1 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2014_201809.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2014_201810.sql @@ -1,7 +1,7 @@ -- SQL Server 2014 Diagnostic Information Queries -- Glenn Berry --- Last Modified: October 31, 2018 +-- Last Modified: November 14, 2018 -- https://www.sqlskills.com/blogs/glenn/ -- http://sqlserverperformance.wordpress.com/ -- Twitter: GlennAlanBerry @@ -482,7 +482,8 @@ SELECT cpu_count AS [Logical CPU Count], scheduler_count, committed_target_kb/1024 AS [Committed Target Memory (MB)], max_workers_count AS [Max Workers Count], affinity_type_desc AS [Affinity Type], - sqlserver_start_time AS [SQL Server Start Time], + sqlserver_start_time AS [SQL Server Start Time], + DATEDIFF(hour, sqlserver_start_time, GETDATE()) AS [SQL Server Up Time (hrs)], virtual_machine_type_desc AS [Virtual Machine Type] FROM sys.dm_os_sys_info WITH (NOLOCK) OPTION (RECOMPILE); ------ diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2_201810.sql similarity index 99% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2_201810.sql index eee6248794..d57e0ad663 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2_201809.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2_201810.sql @@ -1,7 +1,7 @@ -- SQL Server 2016 SP2 Diagnostic Information Queries -- Glenn Berry --- Last Modified: October 24, 2018 +-- Last Modified: November 14, 2018 -- https://www.sqlskills.com/blogs/glenn/ -- http://sqlserverperformance.wordpress.com/ -- Twitter: GlennAlanBerry @@ -67,7 +67,8 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In -- 13.0.5026.0 SP2 RTM 4/24/2018 https://bit.ly/2FEvN2q -- 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 -- 13.0.5153.0 SP2 CU2 7/16/2018 https://support.microsoft.com/en-us/help/4340355 --- 13.0.5216.0 SP2 CU3 9/20/2018 https://support.microsoft.com/en-us/help/4458871 +-- 13.0.5216.0 SP2 CU3 9/20/2018 https://support.microsoft.com/en-us/help/4458871 +-- 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 @@ -453,7 +454,8 @@ SELECT cpu_count AS [Logical CPU Count], scheduler_count, physical_memory_kb/1024 AS [Physical Memory (MB)], max_workers_count AS [Max Workers Count], affinity_type_desc AS [Affinity Type], - sqlserver_start_time AS [SQL Server Start Time], + sqlserver_start_time AS [SQL Server Start Time], + DATEDIFF(hour, sqlserver_start_time, GETDATE()) AS [SQL Server Up Time (hrs)], virtual_machine_type_desc AS [Virtual Machine Type], softnuma_configuration_desc AS [Soft NUMA Configuration], sql_memory_model_desc @@ -1093,7 +1095,7 @@ ON t1.lock_owner_address = t2.resource_address OPTION (RECOMPILE); --- Get CPU Utilization History for last 256 minutes (in one minute intervals) (Query 44) (CPU Utilization History) +-- Get CPU Utilization History for last 256 minutes (in one minute intervals) (Query 45) (CPU Utilization History) DECLARE @ts_now bigint = (SELECT cpu_ticks/(cpu_ticks/ms_ticks) FROM sys.dm_os_sys_info WITH (NOLOCK)); SELECT TOP(256) SQLProcessUtilization AS [SQL Server Process CPU Utilization], diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016_201810.sql similarity index 99% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2016_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2016_201810.sql index b0d8282992..ce5ff7834e 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016_201809.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016_201810.sql @@ -1,7 +1,7 @@ -- SQL Server 2016 Diagnostic Information Queries -- Glenn Berry --- Last Modified: October 24, 2018 +-- Last Modified: November 14, 2018 -- https://www.sqlskills.com/blogs/glenn/ -- http://sqlserverperformance.wordpress.com/ -- Twitter: GlennAlanBerry @@ -86,6 +86,7 @@ SELECT @@SERVERNAME AS [Server Name], @@VERSION AS [SQL Server and OS Version In -- 13.0.4502.0 SP1 CU9 5/30/2018 ----> 13.0.5149.0 SP2 CU1 5/30/2018 -- 13.0.4514.0 SP1 CU10 7/16/2018 ----> 13.0.5153.0 SP2 CU2 7/16/2018 -- 13.0.4528.0 SP1 CU11 9/17/2018 ----> 13.0.5216.0 SP2 CU3 9/20/2018 +-- 13.0.4541.0 SP1 CU12 11/13/2018 ---_> 13.0.5233.0 SP2 CU4 11/13/2018 -- How to determine the version, edition and update level of SQL Server and its components @@ -483,7 +484,8 @@ SELECT cpu_count AS [Logical CPU Count], scheduler_count, committed_target_kb/1024 AS [Committed Target Memory (MB)], max_workers_count AS [Max Workers Count], affinity_type_desc AS [Affinity Type], - sqlserver_start_time AS [SQL Server Start Time], + sqlserver_start_time AS [SQL Server Start Time], + DATEDIFF(hour, sqlserver_start_time, GETDATE()) AS [SQL Server Up Time (hrs)], virtual_machine_type_desc AS [Virtual Machine Type], softnuma_configuration_desc AS [Soft NUMA Configuration], sql_memory_model_desc -- New in SQL Server 2016 diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2017_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2017_201810.sql similarity index 99% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_2017_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_2017_201810.sql index f038e5d140..8f0b104a8e 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2017_201809.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2017_201810.sql @@ -1,7 +1,7 @@ -- SQL Server 2017 Diagnostic Information Queries -- Glenn Berry --- Last Modified: October 24, 2018 +-- Last Modified: November 20, 2018 -- https://www.sqlskills.com/blogs/glenn/ -- http://sqlserverperformance.wordpress.com/ -- Twitter: GlennAlanBerry @@ -467,7 +467,8 @@ SELECT cpu_count AS [Logical CPU Count], scheduler_count, physical_memory_kb/1024 AS [Physical Memory (MB)], max_workers_count AS [Max Workers Count], affinity_type_desc AS [Affinity Type], - sqlserver_start_time AS [SQL Server Start Time], + sqlserver_start_time AS [SQL Server Start Time], + DATEDIFF(hour, sqlserver_start_time, GETDATE()) AS [SQL Server Up Time (hrs)], virtual_machine_type_desc AS [Virtual Machine Type], softnuma_configuration_desc AS [Soft NUMA Configuration], sql_memory_model_desc, process_physical_affinity -- New in SQL Server 2017 @@ -2032,7 +2033,8 @@ AND es.session_id <> @@SPID OPTION (RECOMPILE); -- Get any resumable index rebuild operation information (Query 87) (Resumable Index Rebuild) SELECT OBJECT_NAME(iro.object_id) AS [Object Name], iro.index_id, iro.name AS [Index Name], - iro.sql_text, iro.last_max_dop_used, iro.partition_number, iro.state_desc, iro.start_time, iro.percent_complete + iro.sql_text, iro.last_max_dop_used, iro.partition_number, iro.state_desc, + iro.start_time, iro.percent_complete FROM sys.index_resumable_operations AS iro WITH (NOLOCK) OPTION (RECOMPILE); ------ diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_AzureSQLDatabase_201809.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_AzureSQLDatabase_201810.sql similarity index 100% rename from bin/diagnosticquery/SQLServerDiagnosticQueries_AzureSQLDatabase_201809.sql rename to bin/diagnosticquery/SQLServerDiagnosticQueries_AzureSQLDatabase_201810.sql diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000000..23b34e5dc5 --- /dev/null +++ b/changelog.md @@ -0,0 +1,12 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), + and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2018-Nov-22 +### Added +- This changelog.md! 🎉 + +### Removed +- Extra DLLs that did not seem necessary diff --git a/dbatools.psd1 b/dbatools.psd1 index 2d6afd0a95..4567d6df2d 100644 --- a/dbatools.psd1 +++ b/dbatools.psd1 @@ -11,7 +11,7 @@ RootModule = 'dbatools.psm1' # Version number of this module. - ModuleVersion = '0.9.520' + ModuleVersion = '0.9.521' # ID used to uniquely identify this module GUID = '9d139310-ce45-41ce-8e8b-d76335aa1789' @@ -794,7 +794,7 @@ LicenseUri = "https://opensource.org/licenses/MIT" # Release notes for this particular version of the module - ReleaseNotes = "https://dbatools.io/releases" + ReleaseNotes = "https://dbatools.io/changelog" # If true, the LicenseUrl points to an end-user license (not just a source license) which requires the user agreement before use. # RequireLicenseAcceptance = ""