Index was outside the bounds of the array, Register Database

Automate and integrate using the SQL comparison API

Moderator: Chris Auckland

Index was outside the bounds of the array, Register Database

Postby kevinlan » Thu Nov 03, 2011 8:17 am

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
kevinlan
 
Posts: 9
Joined: Wed Nov 02, 2011 2:13 pm

Postby kevinlan » Thu Nov 03, 2011 10:33 am

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
kevinlan
 
Posts: 9
Joined: Wed Nov 02, 2011 2:13 pm

Postby kevinlan » Fri Nov 04, 2011 9:13 am

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
kevinlan
 
Posts: 9
Joined: Wed Nov 02, 2011 2:13 pm

Postby darewasda134 » Wed Jan 25, 2012 8:38 am

darewasda134
 
Posts: 1
Joined: Wed Jan 25, 2012 8:36 am


Return to SQL Comparison SDK Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest