Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS C:\Users\me\Tresor\Scripts\PowerShell\SQL> Start-SqlMigration -Verbose -Source server1 -Destination server2 -DetachAttach -Reattach -SkipLinkedServers -SkipCentralManagementServer -WhatIf
- What if: Performing the operation "Start-Transcript" on target "C:\Users\me\Tresor\Scripts\PowerShell\SQL\dbatools-startmigration-transcript.txt".
- Connect-SqlServer : The term 'Connect-SqlServer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At C:\Users\me\Documents\WindowsPowerShell\Modules\dbatools\Functions\Start-SqlMigration.ps1:173 char:18
- + $sourceserver = Connect-SqlServer -SqlServer $Source -SqlCredenti ...
- + ~~~~~~~~~~~~~~~~~
- + CategoryInfo : ObjectNotFound: (Connect-SqlServer:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Connect-SqlServer : The term 'Connect-SqlServer' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
- At C:\Users\me\Documents\WindowsPowerShell\Modules\dbatools\Functions\Start-SqlMigration.ps1:174 char:16
- + $destserver = Connect-SqlServer -SqlServer $Destination -SqlCrede ...
- + ~~~~~~~~~~~~~~~~~
- + CategoryInfo : ObjectNotFound: (Connect-SqlServer:String) [], CommandNotFoundException
- + FullyQualifiedErrorId : CommandNotFoundException
- Migrating databases...
- Start-SqlMigration : Database migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
- At line:1 char:1
- + Start-SqlMigration -Verbose -Source server -Destination server1 ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
- Migrating user objects in system databases (this takes a second)...
- What if: Performing the operation "Copying user objects." on target "".
- Migrating logins...
- Start-SqlMigration : Login migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
- At line:1 char:1
- + Start-SqlMigration -Verbose -Source server -Destination server1 ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
- Migrating job server...
- Start-SqlMigration : Job Server migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
- At line:1 char:1
- + Start-SqlMigration -Verbose -Source server -Destination server1 ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
- Migrating SQL credentials...
- Start-SqlMigration : Credential migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
- At line:1 char:1
- + Start-SqlMigration -Verbose -Source server -Destination server1 ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
- Migrating database mail...
- Start-SqlMigration : Database mail migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
- At line:1 char:1
- + Start-SqlMigration -Verbose -Source server -Destination server1 ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
- Migrating SQL Server Configuration...
- Start-SqlMigration : Configuration migration reported the following error Cannot bind argument to parameter 'SqlServer' because it is null.
- At line:1 char:1
- + Start-SqlMigration -Verbose -Source server -Destination server1 ...
- + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
- + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
Advertisement
Add Comment
Please, Sign In to add comment