Handling Database Exception with ADO
From: Franco Caravello (fcaravello_at_atomos.it)
Date: 01/16/04
- Next message: "Philippe: "Retrieving by program the parameter list of a stored procedure ?"
- Previous message: KKF: "TStringGrid and TInplaceEdit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Jan 2004 01:47:49 -0800
I had the following handling routines in Paradox/Interbase for key violations:
try
tblSample.post;
except
on E: EDBEngineError do
if E.Errors[E.ErrorCount - 1].ErrorCode = 9729 then begin
.....................................
How would I trap the same error with ADO?
Can I retrieve an SQLcode like "-803" or "100" (std SQL errors code)?
Tanks
- Next message: "Philippe: "Retrieving by program the parameter list of a stored procedure ?"
- Previous message: KKF: "TStringGrid and TInplaceEdit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|