Skip to content

Commit

Permalink
Copy-DbaDatabase - doc update (#9200)
Browse files Browse the repository at this point in the history
Co-authored-by: Chrissy LeMaire <[email protected]>
Co-authored-by: Shawn Melton <[email protected]>
  • Loading branch information
3 people authored Jan 24, 2024
1 parent f6d99c0 commit b27370e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/Copy-DbaDatabase.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function Copy-DbaDatabase {
.EXAMPLE
PS C:\> Copy-DbaDatabase -Source sql2012 -Destination sql2014, sql2016 -DetachAttach -Reattach
Databases will be migrated from sql2012 to both sql2014 and sql2016 using the detach/copy files/attach method.The following will be performed: kick all users out of the database, detach all data/log files, move files across the network over an admin share (\\SqlSERVER\M$\MSSql...), attach file on destination server, reattach at source. If the database files (*.mdf, *.ndf, *.ldf) on *destination* exist and aren't in use, they will be overwritten.
Databases will be migrated from sql2012 to both sql2014 and sql2016 using the detach/copy files/attach method. The following will be performed: kick all users out of the database, detach all data/log files, files copied to the admin share (\\SqlSERVER\M$\MSSql...) of destination server, attach file on destination server, reattach at source. If the database files (*.mdf, *.ndf, *.ldf) on *destination* exist and aren't in use, they will be overwritten.
.EXAMPLE
PS C:\> Copy-DbaDatabase -Source sql2014a -Destination sqlcluster, sql2016 -BackupRestore -UseLastBackup -Force
Expand Down Expand Up @@ -1486,4 +1486,4 @@ function Copy-DbaDatabase {
Write-Message -Level Verbose -Message "No work was done, as we stopped during setup phase"
}
}
}
}

0 comments on commit b27370e

Please sign in to comment.