Skip to content

Commit

Permalink
Fix SuspectPage example in documentation (#8928)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-gantz authored May 24, 2023
1 parent 5d731c1 commit a0d3acc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/Restore-DbaDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ function Restore-DbaDatabase {
In this example we restore example1 database with no recovery, and then the second call is to set the database to recovery.
.EXAMPLE
PS C:\> Get-DbaDbBackupHistory - SqlInstance server\instance1 -Database ProdFinance -Last | Restore-DbaDatabase -PageRestore
PS C:\> $SuspectPage -PageRestoreTailFolder c:\temp -TrustDbBackupHistory
PS C:\> $SuspectPage = Get-DbaSuspectPage -SqlInstance server\instance1 -Database ProdFinance
PS C:\> Get-DbaDbBackupHistory -SqlInstance server\instance1 -Database ProdFinance -Last | Restore-DbaDatabase -PageRestore $SuspectPage -PageRestoreTailFolder c:\temp -TrustDbBackupHistory
Gets a list of Suspect Pages using Get-DbaSuspectPage. The uses Get-DbaDbBackupHistory and Restore-DbaDatabase to perform a restore of the suspect pages and bring them up to date
Gets a list of Suspect Pages using Get-DbaSuspectPage. Then uses Get-DbaDbBackupHistory and Restore-DbaDatabase to perform a restore of the suspect pages and bring them up to date
If server\instance1 is Enterprise edition this will be done online, if not it will be performed offline
.EXAMPLE
Expand Down

0 comments on commit a0d3acc

Please sign in to comment.