From 561d8be59692a0ef7caaa2854759f4d6c0c55333 Mon Sep 17 00:00:00 2001 From: Aaron M <44618489+McA-the-dba@users.noreply.github.com> Date: Wed, 2 Oct 2019 16:06:24 -0500 Subject: [PATCH] Update Restore-DbaDatabase Help Text (#6082) * 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. --- functions/Restore-DbaDatabase.ps1 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/functions/Restore-DbaDatabase.ps1 b/functions/Restore-DbaDatabase.ps1 index 6f19a9c148..0db60a8d46 100644 --- a/functions/Restore-DbaDatabase.ps1 +++ b/functions/Restore-DbaDatabase.ps1 @@ -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 @@ -704,4 +702,4 @@ function Restore-DbaDatabase { } } } -} \ No newline at end of file +}