How to retrieve SQL error code from the Error object?
From: Konstantin Knyazev (kknyazev_no_spam__at_mail.ru)
Date: 03/21/05
- Next message: DbUpdater support: "ANN: Database schema synchronization"
- Previous message: Santosh: "Re: Mdac 2.7 Install Issue : INF Install failure"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Mar 2005 12:12:07 +0300
Hello!
I'm using MS SQL 2000 as a server and Delphi 7 over ADO as a client. On the
server side i have created stored procedure that can raise an error with
some SQL error code like 547 or 550 and i want to catch this code on the
client side to log and to call other procedure, but Error object does not
pass this code, there are only OLE DB error code (same for different errors)
and Description, but NativeError and SQLState fields is empty. How can i
recieve SQL error code over Error object? Thanks!
Best regards, Konstantin Knyazev
- Next message: DbUpdater support: "ANN: Database schema synchronization"
- Previous message: Santosh: "Re: Mdac 2.7 Install Issue : INF Install failure"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|