OracleConnection.State v/s OleDbConnection.State



According to the MSDN:

Avoid Accessing the OleDbConnection.State Property
If the connection has been opened, OleDbConnection.State property makes the
native OLE DB call IDBProperties.GetProperties to the DATASOURCEINFO
property set for the DBPROP_CONNECTIONSTATUS property, which may result in a
round trip to the data source. In other words, checking the State property
can be expensive. So only check the State property when required. If you
need to check this property often, your application may perform better if
you listen for the StateChange event for your OleDbConnection. For details
on the StateChange event, see Working with Connection Events.



What I'm wondering is, does the OracleConnection suffer from the same
performance problem? Does it drop down to the IDBProperties as well?
Anyone?


.



Relevant Pages

  • Re: HOWTO Check if ADO Connection Lost
    ... The State property says, for example, the recordset has not been closed ... It does not test the connection. ... If the State property did test the connection, I think it would have to send ... Const OpenAsDefault = -2 ...
    (microsoft.public.vb.database.ado)
  • Re: Application Crashes on Connection.close
    ... Even if you check State property of the ... connection, it does not mean it would work. ... Another potential issue is MDAC installation on some clients is corrupted. ... > The code runs great in our development environments but some clients ...
    (microsoft.public.vb.database.ado)
  • Re: Started getting "InvalidOperationException was unhandled" since upgrading to .Net 2.0
    ... If you get it on Close, then it is quite possible that connection ... State property will show status connected even if connection was broken ... On our live server, this is causing a JIT debugging dialog to pop-up ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Started getting "InvalidOperationException was unhandled" since upgrading to .Net 2.0
    ... Val Mazur ... reliable way to check status of the connection because this property does ... then State property will show status connected ... On our live server, this is causing a JIT debugging dialog to pop-up ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connection fault tolerance?
    ... This is true that state property of the connection does not reflect live ... light SQL statement against database and see if it fails or not. ... > cource fails). ...
    (microsoft.public.dotnet.framework.adonet)