July 21, 2019 at 7:53 pm
Hello everyone ,
I must proceed to make a migration of SQL Server from version 2008R2 to version SQL 2016 I try with the dbatools Start-DbaMigration procedure
Start-DbaMigration -Source ABDALLAH-PC\SQLEXPRESS -Destination localhost -BackupRestore -SharedPath C:\backup -WithReplace
I had this error
New-Object : Exception lors de l'appel de « .ctor » avec « 1 » argument(s) : « Operation not supported on version 10.50.4000. »
Au caractère C:\Users\abdallah\Documents\WindowsPowerShell\Modules\dbatools\allcommands.ps1:9925 : 24
+ $sourceStore = New-Object Microsoft.SqlServer.Management.XEvent.XEStore ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
thanks for help
July 21, 2019 at 11:22 pm
I'd probably send a tweet to @psdbatools and see what happens. or #psdbatools
July 22, 2019 at 3:07 pm
This is why I tell people to NOT rely on "OPS" (Other People's S**T)! Teach yourself how to do it using their code as an example and write your own code. Using against SQL Server without understanding how they work eventually leads to disaster. And, yeah, I know you don't know how it works or you'd have fixed it instead of posting about it.
I also agree with @pietlinden... contact the people that wrote it because other people will eventually have the same problem and it's not actually our job to support "OPS". 😀 😀 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
July 22, 2019 at 4:16 pm
You need to exclude the Extended Events from being copied. While SQL Server 2008 R2 did support XE it was very limited and SMO itself won't work against that version. You can have it skip that by using the -Exclude
parameter of the command.
$params = @{
Source = 'ABDALLAY-PC\SQLEXPRESS'
Destination = 'localhost'
BackupRestore = $true
SharedPath = 'C:\backup'
WithReplace = $true
Exclude = 'ExtendedEvents'
}
Start-DbaMigration @params
Shawn Melton
Twitter: @wsmelton
Blog: wsmelton.github.com
Github: wsmelton
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply