Skip to content

Commit

Permalink
Library Update (#8881)
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee authored Apr 28, 2023
1 parent 32502ac commit ffb7b37
Show file tree
Hide file tree
Showing 11 changed files with 65 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install and cache PowerShell modules
uses: potatoqualitee/[email protected]
with:
modules-to-cache: dbatools.library:2023.4.18
modules-to-cache: dbatools.library:2023.4.27

- name: Download dbatools from Gallery
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install and cache PowerShell modules
uses: potatoqualitee/[email protected]
with:
modules-to-cache: dbatools.library:2023.4.18
modules-to-cache: dbatools.library:2023.4.27

- name: Set encryption values
run: |
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
uses: potatoqualitee/[email protected]
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/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/xplat-import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Install and cache PowerShell modules
uses: potatoqualitee/[email protected]
with:
modules-to-cache: dbatools.library:2023.4.18
modules-to-cache: dbatools.library:2023.4.27

- name: Perform the import
shell: pwsh
Expand Down
Binary file modified bin/dbatools-index.json
Binary file not shown.
15 changes: 10 additions & 5 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2012.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2014.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2016.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2016SP2.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2017.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions bin/diagnosticquery/SQLServerDiagnosticQueries_2022.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions dbatools.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -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 = @()
Expand Down Expand Up @@ -786,8 +786,6 @@
# RequireLicenseAcceptance = ""

# Indicates this is a pre-release/testing version of the module.
IsPrerelease = 'true'
Prerelease = 'preview7'
}
}
}

0 comments on commit ffb7b37

Please sign in to comment.