Determines the error code returned by the server.
property ErrorCode: integer;
Use the ErrorCode property to determine the error code returned by SQL Server. This value is always positive.
In SQL Server it's preferable to use EOLEDBError.OLEDBErrorCode and EMSError.MSSQLErrorCode instead of EDAError.ErrorCode.