Red Gate forums :: View topic - Index was outside the bounds of the array, Register Database
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Comparison SDK Previous Versions
SQL Comparison SDK Previous Versions forum

Index was outside the bounds of the array, Register Database

Search in SQL Comparison SDK Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
kevinlan



Joined: 02 Nov 2011
Posts: 9

PostPosted: Thu Nov 03, 2011 8:17 am    Post subject: Index was outside the bounds of the array, Register Database Reply with quote

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
Back to top
View user's profile Send private message
kevinlan



Joined: 02 Nov 2011
Posts: 9

PostPosted: Thu Nov 03, 2011 10:33 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
kevinlan



Joined: 02 Nov 2011
Posts: 9

PostPosted: Fri Nov 04, 2011 9:13 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
darewasda134



Joined: 25 Jan 2012
Posts: 1

PostPosted: Wed Jan 25, 2012 8:38 am    Post subject: Reply with quote

hello ..


prototype china - china quality control - china suppliers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group