Hi,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 = True
While blTry
Try
Me.FillByStoredProcedure(StoredProc)
blTry = False
Catch ex As Exception
blTry = CheckTheError(ex)
End Try
End While
I can see the SQL Error Description but I want to evalute errors using native SQL error codes.
Cheers, Peter