PC Review


Reply
Thread Tools Rate Thread

Determine if connection is from pool or newly opened

 
 
stephen_barrett@aon.com
Guest
Posts: n/a
 
      3rd Nov 2005
We are using Oracle for our backend database. We now have a need that
whenever a new connection is made to the Oracle database from our app,
we have to call a package function that is basically setting a
encryption/decryption key. This only needs to be called once after a
new connection is open.

I am trying to figure out is if there is a way to determine if I get a
already opened pool connection or a newly opened connection when I call
ConnectionObject.Open().

If I can't determine if it is new or if it is from the pool, then I
have to call the package function everytime after .Open is called which
can get expensive. Opening and closing of connections is handled in
our Data Access layer of our framework and developers don't really have
direct control of the open and close.

Is there a way to dermine if it is a new connection or pooled? I am
wondering if I always get a pooled connection because under the covers
..net is searching for an available connection, if don't find open a new
one, add new to pool, and return connection from pool. If this is the
case, I am probably stuck with having to make the call everytime.

Anyone know of way?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set focus on newly opened MDB/MDE =?Utf-8?B?Q2hpYmJ5?= Microsoft Access VBA Modules 0 18th Mar 2007 01:54 AM
Determine app pool from code Steve Lynch Microsoft ASP .NET 3 4th Feb 2007 12:54 PM
Determine if connection is from pool or newly opened stephen_barrett@aon.com Microsoft ADO .NET 0 3rd Nov 2005 06:48 PM
can't save newly opened files Rasoul Khoshravan Microsoft Excel Misc 1 9th Dec 2004 07:27 AM
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. Guoqi Zheng Microsoft ASP .NET 4 3rd Jun 2004 07:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.