Re: How can I handle the exception when the connection fail??
From: Morpheus (morpheusNOPSAM_at_redpoint.co.za)
Date: 06/18/04
- Next message: David Smith: "Re: BDE TO ADO : Ok, but not with ORACLE"
- Previous message: Morpheus: "Re: Delphi7/ADO/SQL Server 2000 TDBGrid problem"
- In reply to: Bahamut: "How can I handle the exception when the connection fail??"
- Next in thread: Brian Bushay TeamB: "Re: How can I handle the exception when the connection fail??"
- Reply: Brian Bushay TeamB: "Re: How can I handle the exception when the connection fail??"
- Reply: Bahamut: "Re: How can I handle the exception when the connection fail??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 18 Jun 2004 17:50:02 +0200
I would suspect that the AfterDisconnect or the OnDisconnect event (or both)
of your TDataBase component are fired if you lose the connection to the DB.
I'm open to correction on this one, but logic tells me you could put some
code in here to handle the raised exception and gracefully shut down your
application.
Regards,
Morpheus
"Bahamut" <abc@def.com> wrote in message
news:40d2787e$1@newsgroups.borland.com...
> Hi, All
>
> I'm using Delphi6 with MSSQLServer2000 on Win2K.
> I have a program that connect to SQLServer. The program get an exception
> when the connection fail suddenly(server down, etc).
> How can I handle the exception and take some action when the connection
> fail??
>
> -------------
> Bahamut
> (Sorry about my poor English ^^)
>
>
- Next message: David Smith: "Re: BDE TO ADO : Ok, but not with ORACLE"
- Previous message: Morpheus: "Re: Delphi7/ADO/SQL Server 2000 TDBGrid problem"
- In reply to: Bahamut: "How can I handle the exception when the connection fail??"
- Next in thread: Brian Bushay TeamB: "Re: How can I handle the exception when the connection fail??"
- Reply: Brian Bushay TeamB: "Re: How can I handle the exception when the connection fail??"
- Reply: Bahamut: "Re: How can I handle the exception when the connection fail??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|