TADOConnection and Oracle
- From: "Mick Board" <mick_board@xxxxxxxxx>
- Date: Wed, 25 Oct 2006 21:24:33 +1000
Hi,
I'm finding an interesting problem when using a TADOConnection connected to
an Oracle database with both the Microsoft Oracle Driver or Oracle's Oracle
driver. (I'm using MDAC 2.8). I'm writing some software that's dependent
on handling if the database goes down. On shutting down the database for
testing purposes I'm finding that I can trap an error occuring when I try
and run a TADOQuery that's using the TADOConnection to connect, however
the TADOConnection object, always tells me it's connected - even if I close
it's connection and open it again!! The problem with this is a) the
database is down, b) if I bring the database up again, try connecting again
(yes - successful again), try closing and running the TADOQuery based off
this connection - the query fails. For some reason the TADOConnection
object isn't giving an error when it's being closed then opened again on the
shutdown database.
Now: I can do the above against SQL Server database and it works correctly.
i.e. If I disconnect and reconnect the TADOConnection object when the SQL
Server database is down it tells me accordingly. When it comes up again, I
can run code to connect the TADOConnection properly and the TADOQuery that
uses this then works again (after its opened again).
Any thoughts on how I can get this to work for Oracle. This is driving me
crazy!
.
- Follow-Ups:
- Re: TADOConnection and Oracle
- From: Mick Board
- Re: TADOConnection and Oracle
- Prev by Date: Re: Blob fields
- Next by Date: Re: TADOConnection and Oracle
- Previous by thread: Blob fields
- Next by thread: Re: TADOConnection and Oracle
- Index(es):
Relevant Pages
|