What are the challenges you face when working across database platforms? Take the survey
Options

Property "Percentage" of StatusEventArgs higher than 100 ?

Bastiaan MolsbeckBastiaan Molsbeck Posts: 73
edited January 14, 2015 10:47AM in SQL Comparison SDK 11
Hi,

I created a .NET project to compare and synchronize the data of two databases, which structure is exactly the same (schemes, tables, columns, etc).
To monitor the progress, I use a StatusCallBack method very similar to the one listed in this example:
http://sdk.red-gate.com/index.php/Compa ... e_database

But when running the tool the value of the property "Percentage" of the parameter "StatusEventArgs e" in the method "StatusCallBack" gets higher than 100.
This occurs when the tool performs the call to CompareDatabases.

Can you explain this? I would expect that a percentage never gets higher than 100.
Could this be caused by our database structure? We currently have around 630 database tables, spread over 10 database schemes.

Comments

  • Options
    Hi- the code we use is a heuristic (it tries to anticipate how long the whole process is going to take). This cannot be done perfectly accurately of course so sometimes it will underestimate, sometimes overestimate.
Sign In or Register to comment.