I am using ADO and I get a deadlock error. When I query the errors collection I get back 0x80004005 and the typical deadlock error message. I know that other messages can come back from the database with the same error number. Is there any way to distinguish the difference other than searching through the message. We handle our code execution different if it is a deadlock. I cant search the message because other languages are used.
I am using this provider
Provider=SQLOLEDB.1;Data Source=devmacine;Initial Catalog=AAD;Persist Security Info=False