Skip to content

Commit

Permalink
Update Restore-DbaDatabase Help Text (#6082)
Browse files Browse the repository at this point in the history
* Removed Select-Object command as it was not necessary to output the .sql file.
* Set description text for example 5 to one line. Removed unneeded line break at end of file.
  • Loading branch information
McA-the-dba authored and wsmelton committed Oct 2, 2019
1 parent 47a9fe7 commit 561d8be
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions functions/Restore-DbaDatabase.ps1
Expand Up @@ -231,11 +231,9 @@ function Restore-DbaDatabase {
.EXAMPLE
PS C:\> $result = Restore-DbaDatabase -SqlInstance server1\instance1 -Path \\server2\backups -DestinationDataDirectory c:\restores -OutputScriptOnly
PS C:\> $result | Select-Object -ExpandProperty Tsql | Out-File -Filepath c:\scripts\restore.sql
PS C:\> $result | Out-File -Filepath c:\scripts\restore.sql
Scans all the backup files in \\server2\backups stored in an Ola Hallengren style folder structure,
filters them and generate the T-SQL Scripts to restore the database to the latest point in time,
and then stores the output in a file for later retrieval
Scans all the backup files in \\server2\backups, filters them and generate the T-SQL Scripts to restore the database to the latest point in time, and then stores the output in a file for later retrieval
.EXAMPLE
PS C:\> Restore-DbaDatabase -SqlInstance server1\instance1 -Path c:\backups -DestinationDataDirectory c:\DataFiles -DestinationLogDirectory c:\LogFile
Expand Down Expand Up @@ -704,4 +702,4 @@ function Restore-DbaDatabase {
}
}
}
}
}

0 comments on commit 561d8be

Please sign in to comment.