Options

Index was outside the bounds of the array, Register Database

kevinlankevinlan Posts: 11
i am so confuse with this .

i have two identical database in different servers.

i try it use the coding which base on sql compare sdk 8.0 to compare the two database. but i get this error.

stagingDB.Register(sourceConnectionProperties,Options.DecryptPost2kEncryptedObjects)

productionDB.Register(targetConnectionProperties,Options.Default);

Options.DecryptPost2kEncryptedObjects|Options.Default

i found i add any one of the two options (Options.DecryptPost2kEncryptedObjects , Options.Default) it will raise the index out of array errors.

but there hasn't any errors on the line 'stagingDB.Register'

i have Encytioned objects in the two database, after i delete this objects, it can work well.

i am not sure what the root cause, the servers are all sqlserver 2008

did there has something with the version?

one is sqlserver10.0.4064
another is sqlserver 10.0.2531

Comments

  • Options
    after tracked today, i had a little cute.

    when the dababase located on the windows 2008 and above version,but also there exists encryptioned objects in the database. this error will raise.


    any body came cross this issue?


    thanks
  • Options
    the issue is that i couldn't Decyption objects which host on the X64 database but the X32.

    i am using the sql comparsion sdk 8.0, i have included the backupreader.dll and compile it as X86
Sign In or Register to comment.