Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Getting object-id of an object on which a lock just timed out.

$
0
0
I use ODBC API to talk to SQL Server. If SQLExecDirect returns SQL_ERROR, I use SQLGetDiagRec to get information about the error. If SQLGetDiagRec returns a native error of 1222, you know it is a lock timeout. At this point, I'd like to get the object-id of the object on which lock timed out. What is the easiest way to do that?

Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>