Have you checked out Dynamic Properties task. Using the dynamic properties task you can set the global variable straight from the INI file without needed your VB code. Check out...
RI is enforced via cascade deletes. Delete in Query Analyzer takes 10 minutes. Unable to delete via application (never? completes prior to disconnecting).