From 0e060925ae0ed6cbc4d56cd9ef6360e744a7bc66 Mon Sep 17 00:00:00 2001 From: potatoqualitee Date: Thu, 6 Oct 2022 15:25:56 +0000 Subject: [PATCH] update version --- bin/dbatools-index.json.REMOVED.git-id | 2 +- .../SQLServerDiagnosticQueries_2008R2.sql | 2 +- .../SQLServerDiagnosticQueries_2012.sql | 2 +- .../SQLServerDiagnosticQueries_2014.sql | 2 +- .../SQLServerDiagnosticQueries_2016.sql | 2 +- .../SQLServerDiagnosticQueries_2017.sql | 68 +++++++++---------- .../SQLServerDiagnosticQueries_2019.sql | 4 +- dbatools.psd1 | 2 +- en-us/dbatools-help.xml.REMOVED.git-id | 2 +- 9 files changed, 43 insertions(+), 43 deletions(-) diff --git a/bin/dbatools-index.json.REMOVED.git-id b/bin/dbatools-index.json.REMOVED.git-id index 527958b74f..279e6154db 100644 --- a/bin/dbatools-index.json.REMOVED.git-id +++ b/bin/dbatools-index.json.REMOVED.git-id @@ -1 +1 @@ -f6be79eab2d8bdfa7e2a496b882b913b7f3b4dd7 \ No newline at end of file +b2eaf8662d19e4f5de15bce4c30efc143c3fb82d \ No newline at end of file diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2.sql index 9f454f4c38..7bbaa50e25 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2008R2.sql @@ -1,7 +1,7 @@ -- SQL Server 2008 R2 Diagnostic Information Queries -- Glenn Berry --- Last Modified: July 5, 2022 +-- Last Modified: October 1, 2022 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql index ad9c672cb2..8bc2321b76 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql @@ -1,7 +1,7 @@ -- SQL Server 2012 Diagnostic Information Queries -- Glenn Berry --- Last Modified: September 1, 2022 +-- Last Modified: October 1, 2022 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql index b4cbfd2644..d184843268 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql @@ -1,7 +1,7 @@ -- SQL Server 2014 Diagnostic Information Queries -- Glenn Berry --- Last Modified: September 1, 2022 +-- Last Modified: October 1, 2022 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql index 5e776770d5..548914b3d6 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql @@ -1,7 +1,7 @@ -- SQL Server 2016 Diagnostic Information Queries -- Glenn Berry --- Last Modified: September 1, 2022 +-- Last Modified: October 1, 2022 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql index 63ccdc4488..49fd35882b 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql @@ -1,7 +1,7 @@ -- SQL Server 2017 Diagnostic Information Queries -- Glenn Berry --- Last Modified: September 20, 2022 +-- Last Modified: October 4, 2022 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -1397,7 +1397,7 @@ EXEC sys.xp_readerrorlog 0, 1, N'Buffer pool scan took'; --USE YourDatabaseName; -- make sure to change to an actual database on your instance, not the master system database --GO --- Individual File Sizes and space available for current database (Query 51) (File Sizes and Space) +-- Individual File Sizes and space available for current database (Query 52) (File Sizes and Space) SELECT f.name AS [File Name] , f.physical_name AS [Physical Name], CAST((f.size/128.0) AS DECIMAL(15,2)) AS [Total Size in MB], CAST(f.size/128.0 - CAST(FILEPROPERTY(f.name, 'SpaceUsed') AS int)/128.0 AS DECIMAL(15,2)) @@ -1422,7 +1422,7 @@ ORDER BY f.[file_id] OPTION (RECOMPILE); -- https://bit.ly/2evRZSR --- Log space usage for current database (Query 52) (Log Space Usage) +-- Log space usage for current database (Query 53) (Log Space Usage) SELECT DB_NAME(lsu.database_id) AS [Database Name], db.recovery_model_desc AS [Recovery Model], CAST(lsu.total_log_size_in_bytes/1048576.0 AS DECIMAL(10, 2)) AS [Total Log Space (MB)], CAST(lsu.used_log_space_in_bytes/1048576.0 AS DECIMAL(10, 2)) AS [Used Log Space (MB)], @@ -1441,7 +1441,7 @@ OPTION (RECOMPILE); -- https://bit.ly/2H4MQw9 --- Status of last VLF for current database (Query 53) (Last VLF Status) +-- Status of last VLF for current database (Query 54) (Last VLF Status) SELECT TOP(1) DB_NAME(li.database_id) AS [Database Name], li.[file_id], li.vlf_size_mb, li.vlf_sequence_number, li.vlf_active, li.vlf_status FROM sys.dm_db_log_info(DB_ID()) AS li @@ -1460,8 +1460,8 @@ ORDER BY vlf_sequence_number DESC OPTION (RECOMPILE); --- Get database scoped configuration values for current database (Query 54) (Database-scoped Configurations) -SELECT configuration_id, name, [value] AS [value_for_primary], value_for_secondary +-- Get database scoped configuration values for current database (Query 55) (Database-scoped Configurations) +SELECT configuration_id, name, [value] AS [value_for_primary], value_for_secondary, is_value_default FROM sys.database_scoped_configurations WITH (NOLOCK) OPTION (RECOMPILE); ------ @@ -1474,7 +1474,7 @@ FROM sys.database_scoped_configurations WITH (NOLOCK) OPTION (RECOMPILE); -- https://bit.ly/2sOH7nb --- I/O Statistics by file for the current database (Query 55) (IO Stats By File) +-- I/O Statistics by file for the current database (Query 56) (IO Stats By File) SELECT DB_NAME(DB_ID()) AS [Database Name], df.name AS [Logical Name], vfs.[file_id], df.type_desc, df.physical_name AS [Physical Name], CAST(vfs.size_on_disk_bytes/1048576.0 AS DECIMAL(15, 2)) AS [Size on Disk (MB)], vfs.num_of_reads, vfs.num_of_writes, vfs.io_stall_read_ms, vfs.io_stall_write_ms, @@ -1497,7 +1497,7 @@ ON vfs.[file_id]= df.[file_id] OPTION (RECOMPILE); --- Get most frequently executed queries for this database (Query 56) (Query Execution Counts) +-- Get most frequently executed queries for this database (Query 57) (Query Execution Counts) SELECT TOP(50) LEFT(t.[text], 50) AS [Short Query Text], qs.execution_count AS [Execution Count], qs.total_logical_reads AS [Total Logical Reads], qs.total_logical_reads/qs.execution_count AS [Avg Logical Reads], @@ -1519,7 +1519,7 @@ ORDER BY qs.execution_count DESC OPTION (RECOMPILE); -- Queries 57 through 63 are the "Bad Man List" for stored procedures --- Top Cached SPs By Execution Count (Query 57) (SP Execution Counts) +-- Top Cached SPs By Execution Count (Query 58) (SP Execution Counts) SELECT TOP(100) p.name AS [SP Name], qs.execution_count AS [Execution Count], ISNULL(qs.execution_count/DATEDIFF(Minute, qs.cached_time, GETDATE()), 0) AS [Calls/Minute], qs.total_elapsed_time/qs.execution_count AS [Avg Elapsed Time], @@ -1543,7 +1543,7 @@ ORDER BY qs.execution_count DESC OPTION (RECOMPILE); -- It also helps you find possible caching opportunities --- Top Cached SPs By Avg Elapsed Time (Query 58) (SP Avg Elapsed Time) +-- Top Cached SPs By Avg Elapsed Time (Query 59) (SP Avg Elapsed Time) SELECT TOP(25) p.name AS [SP Name], qs.min_elapsed_time, qs.total_elapsed_time/qs.execution_count AS [avg_elapsed_time], qs.max_elapsed_time, qs.last_elapsed_time, qs.total_elapsed_time, qs.execution_count, ISNULL(qs.execution_count/DATEDIFF(Minute, qs.cached_time, GETDATE()), 0) AS [Calls/Minute], @@ -1567,7 +1567,7 @@ ORDER BY avg_elapsed_time DESC OPTION (RECOMPILE); --- Top Cached SPs By Total Worker time. Worker time relates to CPU cost (Query 59) (SP Worker Time) +-- Top Cached SPs By Total Worker time. Worker time relates to CPU cost (Query 60) (SP Worker Time) SELECT TOP(25) p.name AS [SP Name], qs.total_worker_time AS [TotalWorkerTime], qs.total_worker_time/qs.execution_count AS [AvgWorkerTime], qs.execution_count, ISNULL(qs.execution_count/DATEDIFF(Minute, qs.cached_time, GETDATE()), 0) AS [Calls/Minute], @@ -1589,7 +1589,7 @@ ORDER BY qs.total_worker_time DESC OPTION (RECOMPILE); -- You should look at this if you see signs of CPU pressure --- Top Cached SPs By Total Logical Reads. Logical reads relate to memory pressure (Query 60) (SP Logical Reads) +-- Top Cached SPs By Total Logical Reads. Logical reads relate to memory pressure (Query 61) (SP Logical Reads) SELECT TOP(25) p.name AS [SP Name], qs.total_logical_reads AS [TotalLogicalReads], qs.total_logical_reads/qs.execution_count AS [AvgLogicalReads],qs.execution_count, ISNULL(qs.execution_count/DATEDIFF(Minute, qs.cached_time, GETDATE()), 0) AS [Calls/Minute], @@ -1611,7 +1611,7 @@ ORDER BY qs.total_logical_reads DESC OPTION (RECOMPILE); -- You should look at this if you see signs of memory pressure --- Top Cached SPs By Total Physical Reads. Physical reads relate to disk read I/O pressure (Query 61) (SP Physical Reads) +-- Top Cached SPs By Total Physical Reads. Physical reads relate to disk read I/O pressure (Query 62) (SP Physical Reads) SELECT TOP(25) p.name AS [SP Name],qs.total_physical_reads AS [TotalPhysicalReads], qs.total_physical_reads/qs.execution_count AS [AvgPhysicalReads], qs.execution_count, qs.total_logical_reads,qs.total_elapsed_time, qs.total_elapsed_time/qs.execution_count AS [avg_elapsed_time], @@ -1633,7 +1633,7 @@ ORDER BY qs.total_physical_reads DESC, qs.total_logical_reads DESC OPTION (RECOM --- Top Cached SPs By Total Logical Writes (Query 62) (SP Logical Writes) +-- Top Cached SPs By Total Logical Writes (Query 63) (SP Logical Writes) -- Logical writes relate to both memory and disk I/O pressure SELECT TOP(25) p.name AS [SP Name], qs.total_logical_writes AS [TotalLogicalWrites], qs.total_logical_writes/qs.execution_count AS [AvgLogicalWrites], qs.execution_count, @@ -1658,7 +1658,7 @@ ORDER BY qs.total_logical_writes DESC OPTION (RECOMPILE); --- Cached SPs Missing Indexes by Execution Count (Query 63) (SP Missing Index) +-- Cached SPs Missing Indexes by Execution Count (Query 64) (SP Missing Index) SELECT TOP(25) p.name AS [SP Name], qs.execution_count AS [Execution Count], ISNULL(qs.execution_count/DATEDIFF(Minute, qs.cached_time, GETDATE()), 0) AS [Calls/Minute], qs.total_elapsed_time/qs.execution_count AS [Avg Elapsed Time], @@ -1682,7 +1682,7 @@ ORDER BY qs.execution_count DESC OPTION (RECOMPILE); --- Lists the top statements by average input/output usage for the current database (Query 64) (Top IO Statements) +-- Lists the top statements by average input/output usage for the current database (Query 65) (Top IO Statements) SELECT TOP(50) OBJECT_NAME(qt.objectid, dbid) AS [SP Name], (qs.total_logical_reads + qs.total_logical_writes) /qs.execution_count AS [Avg IO], qs.execution_count AS [Execution Count], SUBSTRING(qt.[text],qs.statement_start_offset/2, @@ -1701,7 +1701,7 @@ ORDER BY [Avg IO] DESC OPTION (RECOMPILE); --- Possible Bad NC Indexes (writes > reads) (Query 65) (Bad NC Indexes) +-- Possible Bad NC Indexes (writes > reads) (Query 66) (Bad NC Indexes) SELECT SCHEMA_NAME(o.[schema_id]) AS [Schema Name], OBJECT_NAME(s.[object_id]) AS [Table Name], i.name AS [Index Name], i.index_id, @@ -1727,7 +1727,7 @@ ORDER BY [Difference] DESC, [Total Writes] DESC, [Total Reads] ASC OPTION (RECOM -- Investigate further before dropping an index! --- Missing Indexes for current database by Index Advantage (Query 66) (Missing Indexes) +-- Missing Indexes for current database by Index Advantage (Query 67) (Missing Indexes) SELECT DISTINCT CONVERT(decimal(18,2), migs.user_seeks * migs.avg_total_user_cost * (migs.avg_user_impact * 0.01)) AS [index_advantage], CONVERT(nvarchar(25), migs.last_user_seek, 20) AS [last_user_seek], mid.[statement] AS [Database.Schema.Table], @@ -1752,7 +1752,7 @@ ORDER BY index_advantage DESC OPTION (RECOMPILE); -- Håkan Winther has given me some great suggestions for this query --- Find missing index warnings for cached plans in the current database (Query 67) (Missing Index Warnings) +-- Find missing index warnings for cached plans in the current database (Query 68) (Missing Index Warnings) -- Note: This query could take some time on a busy instance SELECT TOP(25) OBJECT_NAME(objectid) AS [ObjectName], cp.objtype, cp.usecounts, cp.size_in_bytes, qp.query_plan @@ -1767,7 +1767,7 @@ ORDER BY cp.usecounts DESC OPTION (RECOMPILE); -- This can help you decide whether to add them or not --- Breaks down buffers used by current database by object (table, index) in the buffer cache (Query 68) (Buffer Usage) +-- Breaks down buffers used by current database by object (table, index) in the buffer cache (Query 69) (Buffer Usage) -- Note: This query could take some time on a busy instance SELECT fg.name AS [Filegroup Name], SCHEMA_NAME(o.Schema_ID) AS [Schema Name], OBJECT_NAME(p.[object_id]) AS [Object Name], p.index_id, @@ -1799,7 +1799,7 @@ ORDER BY [BufferCount] DESC OPTION (RECOMPILE); -- It can help identify possible candidates for data compression --- Get Schema names, Table names, object size, row counts, and compression status for clustered index or heap (Query 69) (Table Sizes) +-- Get Schema names, Table names, object size, row counts, and compression status for clustered index or heap (Query 70) (Table Sizes) SELECT DB_NAME(DB_ID()) AS [Database Name], SCHEMA_NAME(o.Schema_ID) AS [Schema Name], OBJECT_NAME(p.object_id) AS [Table Name], CAST(SUM(ps.reserved_page_count) * 8.0 / 1024 AS DECIMAL(19,2)) AS [Object Size (MB)], @@ -1821,7 +1821,7 @@ ORDER BY SUM(ps.reserved_page_count) DESC, SUM(p.Rows) DESC OPTION (RECOMPILE); --- Get some key table properties (Query 70) (Table Properties) +-- Get some key table properties (Query 71) (Table Properties) SELECT OBJECT_NAME(t.[object_id]) AS [ObjectName], p.[rows] AS [Table Rows], p.index_id, p.data_compression_desc AS [Index Data Compression], t.create_date, t.lock_on_bulk_load, t.is_replicated, t.has_replication_filter, @@ -1844,7 +1844,7 @@ ORDER BY OBJECT_NAME(t.[object_id]), p.index_id OPTION (RECOMPILE); --- When were Statistics last updated on all indexes? (Query 71) (Statistics Update) +-- When were Statistics last updated on all indexes? (Query 72) (Statistics Update) SELECT SCHEMA_NAME(o.Schema_ID) + N'.' + o.[NAME] AS [Object Name], o.[type_desc] AS [Object Type], i.[name] AS [Index Name], STATS_DATE(i.[object_id], i.index_id) AS [Statistics Date], s.auto_created, s.no_recompute, s.user_created, s.is_incremental, s.is_temporary, @@ -1878,7 +1878,7 @@ ORDER BY STATS_DATE(i.[object_id], i.index_id) DESC OPTION (RECOMPILE); --- Look at most frequently modified indexes and statistics (Query 72) (Volatile Indexes) +-- Look at most frequently modified indexes and statistics (Query 73) (Volatile Indexes) SELECT o.[name] AS [Object Name], o.[object_id], o.[type_desc], s.[name] AS [Statistics Name], s.stats_id, s.no_recompute, s.auto_created, s.is_incremental, s.is_temporary, sp.modification_counter, sp.[rows], sp.rows_sampled, sp.last_updated @@ -1896,7 +1896,7 @@ ORDER BY sp.modification_counter DESC, o.name OPTION (RECOMPILE); --- Get fragmentation info for all indexes above a certain size in the current database (Query 73) (Index Fragmentation) +-- Get fragmentation info for all indexes above a certain size in the current database (Query 74) (Index Fragmentation) -- Note: This query could take some time on a very large database SELECT DB_NAME(ps.database_id) AS [Database Name], SCHEMA_NAME(o.[schema_id]) AS [Schema Name], OBJECT_NAME(ps.OBJECT_ID) AS [Object Name], i.[name] AS [Index Name], ps.index_id, ps.index_type_desc, @@ -1917,7 +1917,7 @@ ORDER BY ps.avg_fragmentation_in_percent DESC OPTION (RECOMPILE); -- and how effective your index maintenance strategy is ---- Index Read/Write stats (all tables in current DB) ordered by Reads (Query 74) (Overall Index Usage - Reads) +--- Index Read/Write stats (all tables in current DB) ordered by Reads (Query 75) (Overall Index Usage - Reads) SELECT SCHEMA_NAME(t.[schema_id]) AS [SchemaName], OBJECT_NAME(i.[object_id]) AS [ObjectName], i.[name] AS [IndexName], i.index_id, i.[type_desc] AS [Index Type], s.user_seeks, s.user_scans, s.user_lookups, @@ -1939,7 +1939,7 @@ ORDER BY s.user_seeks + s.user_scans + s.user_lookups DESC OPTION (RECOMPILE); - -- Show which indexes in the current database are most active for Reads ---- Index Read/Write stats (all tables in current DB) ordered by Writes (Query 75) (Overall Index Usage - Writes) +--- Index Read/Write stats (all tables in current DB) ordered by Writes (Query 76) (Overall Index Usage - Writes) SELECT SCHEMA_NAME(t.[schema_id]) AS [SchemaName],OBJECT_NAME(i.[object_id]) AS [ObjectName], i.[name] AS [IndexName], i.index_id, i.[type_desc] AS [Index Type], s.user_updates AS [Writes], s.user_seeks + s.user_scans + s.user_lookups AS [Total Reads], @@ -1960,7 +1960,7 @@ ORDER BY s.user_updates DESC OPTION (RECOMPILE); -- Order by writes --- Get lock waits for current database (Query 76) (Lock Waits) +-- Get lock waits for current database (Query 77) (Lock Waits) SELECT o.name AS [table_name], i.name AS [index_name], ios.index_id, ios.partition_number, SUM(ios.row_lock_wait_count) AS [total_row_lock_waits], SUM(ios.row_lock_wait_in_ms) AS [total_row_lock_wait_in_ms], @@ -1985,7 +1985,7 @@ ORDER BY total_lock_wait_in_ms DESC OPTION (RECOMPILE); --- Look at UDF execution statistics (Query 77) (UDF Statistics) +-- Look at UDF execution statistics (Query 78) (UDF Statistics) SELECT OBJECT_NAME(object_id) AS [Function Name], execution_count, total_worker_time, total_worker_time/execution_count AS [avg_worker_time], total_logical_reads, total_physical_reads, total_elapsed_time, @@ -2005,7 +2005,7 @@ ORDER BY total_worker_time DESC OPTION (RECOMPILE); -- https://bit.ly/2q1Q6BM --- Get Query Store Options for this database (Query 78) (Query Store Options) +-- Get Query Store Options for this database (Query 79) (Query Store Options) SELECT actual_state_desc, desired_state_desc, [interval_length_minutes], current_storage_size_mb, [max_storage_size_mb], query_capture_mode_desc, size_based_cleanup_mode_desc, wait_stats_capture_mode_desc @@ -2025,7 +2025,7 @@ FROM sys.database_query_store_options WITH (NOLOCK) OPTION (RECOMPILE); -- ALTER DATABASE [DatabaseName] SET QUERY_STORE = OFF(FORCED); --- Get input buffer information for the current database (Query 79) (Input Buffer) +-- Get input buffer information for the current database (Query 80) (Input Buffer) SELECT es.session_id, DB_NAME(es.database_id) AS [Database Name], es.[program_name], es.[host_name], es.login_name, es.login_time, es.cpu_time, es.logical_reads, es.memory_usage, @@ -2048,7 +2048,7 @@ AND es.session_id <> @@SPID OPTION (RECOMPILE); --- Get any resumable index rebuild operation information (Query 80) (Resumable Index Rebuild) +-- Get any resumable index rebuild operation information (Query 81) (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, CONVERT(decimal(15,2),iro.percent_complete) AS [Percent Complete], @@ -2062,7 +2062,7 @@ OPTION (RECOMPILE); -- https://bit.ly/2pYSWqq --- Get database automatic tuning options (Query 81) (Automatic Tuning Options) +-- Get database automatic tuning options (Query 82) (Automatic Tuning Options) SELECT [name], desired_state_desc, actual_state_desc, reason_desc FROM sys.database_automatic_tuning_options WITH (NOLOCK) OPTION (RECOMPILE); @@ -2073,7 +2073,7 @@ OPTION (RECOMPILE); --- Look at recent Full backups for the current database (Query 82) (Recent Full Backups) +-- Look at recent Full backups for the current database (Query 83) (Recent Full Backups) SELECT TOP (30) bs.machine_name, bs.server_name, bs.database_name AS [Database Name], bs.recovery_model, CONVERT (BIGINT, bs.backup_size / 1048576 ) AS [Uncompressed Backup Size (MB)], CONVERT (BIGINT, bs.compressed_backup_size / 1048576 ) AS [Compressed Backup Size (MB)], diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2019.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2019.sql index ea72744d71..073e6f8720 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2019.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2019.sql @@ -1,7 +1,7 @@ -- SQL Server 2019 Diagnostic Information Queries -- Glenn Berry --- Last Modified: September 28, 2022 +-- Last Modified: October 3, 2022 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -1522,7 +1522,7 @@ ORDER BY vlf_sequence_number DESC OPTION (RECOMPILE); -- Get database scoped configuration values for current database (Query 57) (Database-scoped Configurations) -SELECT configuration_id, name, [value] AS [value_for_primary], value_for_secondary +SELECT configuration_id, name, [value] AS [value_for_primary], value_for_secondary, is_value_default FROM sys.database_scoped_configurations WITH (NOLOCK) OPTION (RECOMPILE); ------ diff --git a/dbatools.psd1 b/dbatools.psd1 index 0c5a90a8dc..f7e63eef98 100644 --- a/dbatools.psd1 +++ b/dbatools.psd1 @@ -11,7 +11,7 @@ RootModule = 'dbatools.psm1' # Version number of this module. - ModuleVersion = '1.1.136' + ModuleVersion = '1.1.137' # ID used to uniquely identify this module GUID = '9d139310-ce45-41ce-8e8b-d76335aa1789' diff --git a/en-us/dbatools-help.xml.REMOVED.git-id b/en-us/dbatools-help.xml.REMOVED.git-id index 70485e384b..cd8ee0e4e5 100644 --- a/en-us/dbatools-help.xml.REMOVED.git-id +++ b/en-us/dbatools-help.xml.REMOVED.git-id @@ -1 +1 @@ -21a8ccea1beee356a41e7e548b5bda963c87932f \ No newline at end of file +16660ef72e3ef8d7489f8ed93fb98d08f7870d01 \ No newline at end of file