>If you made a local copy of the DBC, you wouldn't need such code and you'd get better performance over all.
The process should be able to work with the Network database. This code attempts to connect with the database 100000 times.
If it's not broken, fix it until it is.
My Blog