error in dbatools

  • abdalah.mehdoini

    SSC Eights!

    Points: 853

    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

    Sans titre

     

    thanks for help

     

  • pietlinden

    SSC Guru

    Points: 62613

    I'd probably send a tweet to @psdbatools and see what happens. or #psdbatools

  • Jeff Moden

    SSC Guru

    Points: 995150

    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


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
    "If you think its expensive to hire a professional to do the job, wait until you hire an amateur."--Red Adair
    "Change is inevitable... change for the better is not."
    When you put the right degree of spin on it, the number 3|8 is also a glyph that describes the nature of a DBAs job. 😉

    Helpful Links:
    How to post code problems
    Create a Tally Function (fnTally)

  • Shawn Melton

    SSC-Insane

    Points: 24675

    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

     

    • This reply was modified 4 months, 3 weeks ago by  Shawn Melton.

    Shawn Melton
    Twitter: @wsmelton
    Blog: wsmelton.github.com
    Github: wsmelton

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply