Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clonning a connection
Message
From
14/04/2007 10:30:57
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
Clonning a connection
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01215928
Message ID:
01215928
Views:
62
I have a global connection object which I use for all my data access. So, this is much faster. However, sometimes, if two transactions are hitting the Web site at the same time, one could receive an object not a reference error. So, I thought about the idea of obtaining a reference to that global connection object. The reference to it always work, even when two simultaneous hits happen. It is just later down below in the data access, such as a ExecuteReader() or Dataset.Fill() command that I can have this situation. So, once the reference is done, if I can obtain a clone copy of the connection and use that instead, the problem would go away. But, for a connection object, the Clone() method is not available. Anyone knows a workaround?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform