antic
Perch
Hi all,
Here is some code I developed, which facilitates management of ADO objects in ASP.
The main benefit is that it completely eliminates the problem of left-over connections & recordsets that never get closed. This is of benefit to the developer and also to the hosting provider.
Even if you end your code with Response.End, or even if the code crashes (depending on the severity), all recordsets and connections that have been opened with this class will be neatly closed and related ADO objects destroyed.
This has always been a problem with ADO in ASP, but using this class it is a problem no longer. I've used it for many months (and a previous version for a couple of years) and it's proven to work well.
Examine the demo code file for examples on use.
Hope it's useful to someone. Comments welcome.
Here is some code I developed, which facilitates management of ADO objects in ASP.
The main benefit is that it completely eliminates the problem of left-over connections & recordsets that never get closed. This is of benefit to the developer and also to the hosting provider.
Even if you end your code with Response.End, or even if the code crashes (depending on the severity), all recordsets and connections that have been opened with this class will be neatly closed and related ADO objects destroyed.
This has always been a problem with ADO in ASP, but using this class it is a problem no longer. I've used it for many months (and a previous version for a couple of years) and it's proven to work well.
Examine the demo code file for examples on use.
Hope it's useful to someone. Comments welcome.