I want to wrap certain database processing in Try blocks, check any error and retry (within limits) if they are expected, e.g. locking. However, I'm having trouble identifying the native SQL error code within the Exception, e.g.
blTry = TrueWhile blTry Try Me.FillByStoredProcedure(StoredProc) blTry = False Catch ex As Exception blTry = CheckTheError(ex) End TryEnd While
I can see the SQL Error Description but I want to evalute errors using native SQL error codes.
Cheers, Peter