Database.ErrorCode Property
Syntax
ErrorCode as Integer
Error code returned from database engine. Error codes and error messages are different for each engine.