Hey All,

It's possible to get a return Error Message from mysql programmatically?

I want to do that b'cos sometime the catch statement fail catch exception handling which I think due to non critical error.

Eg: when i perform a Backup Query programmatically , if the backup operation fail. an error message i.e:

Table
databasename.table

Op
backup

Msg_type
error

Msg_text
Failed copying .frm file (errno: 22)

The catch statement fail to catch the above error message. I'm using C#.

Thx,
Cheers
LOOI