Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database Objects

Status
Not open for further replies.

daph

Programmer
Jun 9, 2000
65
CA
Hi,

Is there a way to know how many database objects are open in a program?

Thanks
daph
 
I don't know by code, but there's a tool called JProbe used for monitorization that can help you.

Cheers,

Dian
 
Is there a way to do this in the code? I would like to check this without using a third-party application/tool.

Thanks,
Daph
 
Well, you can always have an static variable and increment or decrement it everytime you instantiate or free a database object.

Cheers,

Dian
 
...and it depends on your motivation for wanting to know this. If you're using Connection Pooling software, then even when you've finished with a database object and close it, it is usually returned to the pool and is still an open database object as far as the database is concerned.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top