Get Exception Code

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Nightflight
Posts: 2
Joined: Mon 14 Sep 2009 16:18

Get Exception Code

Post by Nightflight » Mon 14 Sep 2009 16:28

The SQL-Statement i sent to the DB returns an EOLEDBError. Now i try to get the real SQL-Server-Error Code by evaluation the ErrorCode and OLEDBErrorCode but both are -2147217908. Why???

I would need the real SQL-Server-Code for e.g. duplicate key, keys not in database, ...

I hope someone can help me! Thx

Dimon
Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 15 Sep 2009 12:12

This problem was discussed on SDAC forum. Please view the following topic:
http://www.devart.com/forums/viewtopic.php?t=7488

Nightflight
Posts: 2
Joined: Mon 14 Sep 2009 16:18

Post by Nightflight » Tue 15 Sep 2009 17:59

Thx!

Post Reply