Check if new connection is from pool or new
Posted: Thu 19 Nov 2015 13:38
Hello,
I need to know if a new created OracleConnection Object is when opend from pool or a newly established Db-Connection. After a connection is established we need to start some database commands. I tried the Initialization Command property but it seems that this is always executed when the connection object state is opened. I need a command that is only executed once at the first time a db connection is established.
Thank you very much,
Tobsel
I need to know if a new created OracleConnection Object is when opend from pool or a newly established Db-Connection. After a connection is established we need to start some database commands. I tried the Initialization Command property but it seems that this is always executed when the connection object state is opened. I need a command that is only executed once at the first time a db connection is established.
Thank you very much,
Tobsel