dbatools is a free PowerShell module with over 200 SQL Server administration, best practice and migration commands included.

Please note that documentation and command names may be out of date while we work furiously towards 1.0


Get-DbaSuspectPage

This function returns any records that were stored due to suspect pages in databases on a SQL Server Instance.

Screenshots

dbatools-Get-DbaSuspectPage

Examples

Retrieve any records stored for Suspect Pages on the sql2016 SQL Server.

Get-DbaSuspectPage -SqlInstance sql2016

Retrieve any records stored for Suspect Pages on the sql2016 SQL Server and the Test database only.

Get-DbaSuspectPage -SqlInstance sql2016 -Database Test

Author

This command was created by Garry Bargsley. You can find Garry on Twitter and his blog.

Get-Help

From PowerShell, execute Get-Help Get-DbaSuspectPage -Detailed for more information on this function.

Source Code

Want to see the source code? View Get-DbaSuspectPage.ps1 on GitHub
 

Related commands