cosine83

dbatools

Sep 28th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. PS C:\Users\me\Tresor\Scripts\PowerShell\SQL> Start-SqlMigration -Verbose -Source server1 -Destination server2 -DetachAttach -Reattach -SkipLinkedServers -SkipCentralManagementServer -WhatIf
  2. What if: Performing the operation "Start-Transcript" on target "C:\Users\me\Tresor\Scripts\PowerShell\SQL\dbatools-startmigration-transcript.txt".
  3. 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.
  4. At C:\Users\me\Documents\WindowsPowerShell\Modules\dbatools\Functions\Start-SqlMigration.ps1:173 char:18
  5. + $sourceserver = Connect-SqlServer -SqlServer $Source -SqlCredenti ...
  6. + ~~~~~~~~~~~~~~~~~
  7. + CategoryInfo : ObjectNotFound: (Connect-SqlServer:String) [], CommandNotFoundException
  8. + FullyQualifiedErrorId : CommandNotFoundException
  9.  
  10. 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.
  11. At C:\Users\me\Documents\WindowsPowerShell\Modules\dbatools\Functions\Start-SqlMigration.ps1:174 char:16
  12. + $destserver = Connect-SqlServer -SqlServer $Destination -SqlCrede ...
  13. + ~~~~~~~~~~~~~~~~~
  14. + CategoryInfo : ObjectNotFound: (Connect-SqlServer:String) [], CommandNotFoundException
  15. + FullyQualifiedErrorId : CommandNotFoundException
  16.  
  17.  
  18. Migrating databases...
  19. Start-SqlMigration : Database migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
  20. At line:1 char:1
  21. + Start-SqlMigration -Verbose -Source server -Destination server1 ...
  22. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  24. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
  25.  
  26.  
  27.  
  28. Migrating user objects in system databases (this takes a second)...
  29. What if: Performing the operation "Copying user objects." on target "".
  30.  
  31.  
  32. Migrating logins...
  33. Start-SqlMigration : Login migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
  34. At line:1 char:1
  35. + Start-SqlMigration -Verbose -Source server -Destination server1 ...
  36. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  37. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  38. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
  39.  
  40.  
  41.  
  42. Migrating job server...
  43. Start-SqlMigration : Job Server migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
  44. At line:1 char:1
  45. + Start-SqlMigration -Verbose -Source server -Destination server1 ...
  46. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  48. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
  49.  
  50.  
  51.  
  52. Migrating SQL credentials...
  53. Start-SqlMigration : Credential migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
  54. At line:1 char:1
  55. + Start-SqlMigration -Verbose -Source server -Destination server1 ...
  56. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  57. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  58. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
  59.  
  60.  
  61.  
  62. Migrating database mail...
  63. Start-SqlMigration : Database mail migration reported the following error Cannot bind argument to parameter 'Source' because it is null.
  64. At line:1 char:1
  65. + Start-SqlMigration -Verbose -Source server -Destination server1 ...
  66. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  67. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  68. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
  69.  
  70.  
  71.  
  72. Migrating SQL Server Configuration...
  73. Start-SqlMigration : Configuration migration reported the following error Cannot bind argument to parameter 'SqlServer' because it is null.
  74. At line:1 char:1
  75. + Start-SqlMigration -Verbose -Source server -Destination server1 ...
  76. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  77. + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
  78. + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-SqlMigration
Advertisement
Add Comment
Please, Sign In to add comment