diff --git a/.github/workflows/gallery.yml b/.github/workflows/gallery.yml index 196c493e6a..3812466e3b 100644 --- a/.github/workflows/gallery.yml +++ b/.github/workflows/gallery.yml @@ -23,7 +23,7 @@ jobs: - name: Install and cache PowerShell modules uses: potatoqualitee/psmodulecache@v5.2 with: - modules-to-cache: dbatools.library:2023.4.18 + modules-to-cache: dbatools.library:2023.4.27 - name: Download dbatools from Gallery run: | diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 305dafd78c..a6ba64e2df 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -19,7 +19,7 @@ jobs: - name: Install and cache PowerShell modules uses: potatoqualitee/psmodulecache@v5.2 with: - modules-to-cache: dbatools.library:2023.4.18 + modules-to-cache: dbatools.library:2023.4.27 - name: Set encryption values run: | @@ -68,7 +68,7 @@ jobs: uses: potatoqualitee/psmodulecache@v5.2 with: shell: powershell, pwsh - modules-to-cache: dbatools.library:2023.4.18 + modules-to-cache: dbatools.library:2023.4.27 - name: Install SQL Server localdb uses: potatoqualitee/mssqlsuite@v1.3 diff --git a/.github/workflows/xplat-import.yml b/.github/workflows/xplat-import.yml index 1343ac84d7..20c600df8f 100644 --- a/.github/workflows/xplat-import.yml +++ b/.github/workflows/xplat-import.yml @@ -16,7 +16,7 @@ jobs: - name: Install and cache PowerShell modules uses: potatoqualitee/psmodulecache@v5.2 with: - modules-to-cache: dbatools.library:2023.4.18 + modules-to-cache: dbatools.library:2023.4.27 - name: Perform the import shell: pwsh diff --git a/bin/dbatools-index.json b/bin/dbatools-index.json index 5bb3cfc032..f402af3ac9 100644 Binary files a/bin/dbatools-index.json and b/bin/dbatools-index.json differ diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql index 74d576998a..f542a2de90 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: April 1, 2023 +-- Last Modified: April 27, 2023 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -619,10 +619,15 @@ ORDER BY creation_time DESC OPTION (RECOMPILE); -- Look at Suspect Pages table (Query 23) (Suspect Pages) -SELECT DB_NAME(database_id) AS [Database Name], [file_id], page_id, - event_type, error_count, last_update_date -FROM msdb.dbo.suspect_pages WITH (NOLOCK) -ORDER BY database_id OPTION (RECOMPILE); +SELECT DB_NAME(sp.database_id) AS [Database Name], + sp.[file_id], sp.page_id, sp.event_type, + sp.error_count, sp.last_update_date, + mf.name AS [Logical Name], mf.physical_name AS [File Path] +FROM msdb.dbo.suspect_pages AS sp WITH (NOLOCK) +INNER JOIN sys.master_files AS mf WITH (NOLOCK) +ON mf.database_id = sp.database_id +AND mf.file_id = sp.file_id +ORDER BY sp.database_id OPTION (RECOMPILE); ------ -- event_type value descriptions diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql index 0698625a5f..098462be96 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: April 1, 2023 +-- Last Modified: April 27, 2023 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -611,10 +611,15 @@ ORDER BY creation_time DESC OPTION (RECOMPILE); -- Look at Suspect Pages table (Query 23) (Suspect Pages) -SELECT DB_NAME(database_id) AS [Database Name], [file_id], page_id, - event_type, error_count, last_update_date -FROM msdb.dbo.suspect_pages WITH (NOLOCK) -ORDER BY database_id OPTION (RECOMPILE); +SELECT DB_NAME(sp.database_id) AS [Database Name], + sp.[file_id], sp.page_id, sp.event_type, + sp.error_count, sp.last_update_date, + mf.name AS [Logical Name], mf.physical_name AS [File Path] +FROM msdb.dbo.suspect_pages AS sp WITH (NOLOCK) +INNER JOIN sys.master_files AS mf WITH (NOLOCK) +ON mf.database_id = sp.database_id +AND mf.file_id = sp.file_id +ORDER BY sp.database_id OPTION (RECOMPILE); ------ -- event_type value descriptions diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql index 50175a19ea..24ed231cca 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: April 1, 2023 +-- Last Modified: April 27, 2023 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -612,10 +612,15 @@ ORDER BY creation_time DESC OPTION (RECOMPILE); -- Look at Suspect Pages table (Query 22) (Suspect Pages) -SELECT DB_NAME(database_id) AS [Database Name], [file_id], page_id, - event_type, error_count, last_update_date -FROM msdb.dbo.suspect_pages WITH (NOLOCK) -ORDER BY database_id OPTION (RECOMPILE); +SELECT DB_NAME(sp.database_id) AS [Database Name], + sp.[file_id], sp.page_id, sp.event_type, + sp.error_count, sp.last_update_date, + mf.name AS [Logical Name], mf.physical_name AS [File Path] +FROM msdb.dbo.suspect_pages AS sp WITH (NOLOCK) +INNER JOIN sys.master_files AS mf WITH (NOLOCK) +ON mf.database_id = sp.database_id +AND mf.file_id = sp.file_id +ORDER BY sp.database_id OPTION (RECOMPILE); ------ -- event_type value descriptions diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2.sql index 7eae2553fa..8b386d8d77 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2.sql @@ -1,7 +1,7 @@ -- SQL Server 2016 SP2 Diagnostic Information Queries -- Glenn Berry --- Last Modified: April 1, 2023 +-- Last Modified: April 27, 2023 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -599,10 +599,15 @@ ORDER BY creation_time DESC OPTION (RECOMPILE); -- Look at Suspect Pages table (Query 22) (Suspect Pages) -SELECT DB_NAME(database_id) AS [Database Name], [file_id], page_id, - event_type, error_count, last_update_date -FROM msdb.dbo.suspect_pages WITH (NOLOCK) -ORDER BY database_id OPTION (RECOMPILE); +SELECT DB_NAME(sp.database_id) AS [Database Name], + sp.[file_id], sp.page_id, sp.event_type, + sp.error_count, sp.last_update_date, + mf.name AS [Logical Name], mf.physical_name AS [File Path] +FROM msdb.dbo.suspect_pages AS sp WITH (NOLOCK) +INNER JOIN sys.master_files AS mf WITH (NOLOCK) +ON mf.database_id = sp.database_id +AND mf.file_id = sp.file_id +ORDER BY sp.database_id OPTION (RECOMPILE); ------ -- event_type value descriptions diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql index cba4353e6b..f5c0f5207c 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: April 1, 2023 +-- Last Modified: April 27, 2023 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -620,10 +620,15 @@ ORDER BY creation_time DESC OPTION (RECOMPILE); -- Look at Suspect Pages table (Query 22) (Suspect Pages) -SELECT DB_NAME(database_id) AS [Database Name], [file_id], page_id, - event_type, error_count, last_update_date -FROM msdb.dbo.suspect_pages WITH (NOLOCK) -ORDER BY database_id OPTION (RECOMPILE); +SELECT DB_NAME(sp.database_id) AS [Database Name], + sp.[file_id], sp.page_id, sp.event_type, + sp.error_count, sp.last_update_date, + mf.name AS [Logical Name], mf.physical_name AS [File Path] +FROM msdb.dbo.suspect_pages AS sp WITH (NOLOCK) +INNER JOIN sys.master_files AS mf WITH (NOLOCK) +ON mf.database_id = sp.database_id +AND mf.file_id = sp.file_id +ORDER BY sp.database_id OPTION (RECOMPILE); ------ -- event_type value descriptions diff --git a/bin/diagnosticquery/SQLServerDiagnosticQueries_2022.sql b/bin/diagnosticquery/SQLServerDiagnosticQueries_2022.sql index b651e3a046..a30be0449c 100644 --- a/bin/diagnosticquery/SQLServerDiagnosticQueries_2022.sql +++ b/bin/diagnosticquery/SQLServerDiagnosticQueries_2022.sql @@ -1,7 +1,7 @@ -- SQL Server 2022 Diagnostic Information Queries -- Glenn Berry --- Last Modified: April 13, 2023 +-- Last Modified: April 27, 2023 -- https://glennsqlperformance.com/ -- https://sqlserverperformance.wordpress.com/ -- YouTube: https://bit.ly/2PkoAM1 @@ -640,10 +640,15 @@ ORDER BY creation_time DESC OPTION (RECOMPILE); -- Look at Suspect Pages table (Query 24) (Suspect Pages) -SELECT DB_NAME(database_id) AS [Database Name], [file_id], page_id, - event_type, error_count, last_update_date -FROM msdb.dbo.suspect_pages WITH (NOLOCK) -ORDER BY database_id OPTION (RECOMPILE); +SELECT DB_NAME(sp.database_id) AS [Database Name], + sp.[file_id], sp.page_id, sp.event_type, + sp.error_count, sp.last_update_date, + mf.name AS [Logical Name], mf.physical_name AS [File Path] +FROM msdb.dbo.suspect_pages AS sp WITH (NOLOCK) +INNER JOIN sys.master_files AS mf WITH (NOLOCK) +ON mf.database_id = sp.database_id +AND mf.file_id = sp.file_id +ORDER BY sp.database_id OPTION (RECOMPILE); ------ -- event_type value descriptions diff --git a/dbatools.psd1 b/dbatools.psd1 index 348ff3d3e9..6b5dfe02e1 100644 --- a/dbatools.psd1 +++ b/dbatools.psd1 @@ -29,7 +29,7 @@ Description = "The community module that enables SQL Server Pros to automate database development and server administration" # Modules that must be imported into the global environment prior to importing this module - RequiredModules = @{ ModuleName = 'dbatools.library'; ModuleVersion = '2023.4.18' } + RequiredModules = @{ ModuleName = 'dbatools.library'; ModuleVersion = '2023.4.27' } # Assemblies that must be loaded prior to importing this module RequiredAssemblies = @() @@ -786,8 +786,6 @@ # RequireLicenseAcceptance = "" # Indicates this is a pre-release/testing version of the module. - IsPrerelease = 'true' - Prerelease = 'preview7' } } } \ No newline at end of file