Data.Win.ADODB.TADOConnection.Errors

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Errors: Errors read GetErrors;

C++

__property Winapi::Adoint::_di_Errors Errors = {read=GetErrors};

Properties

Type Visibility Source Unit Parent
property public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TADOConnection

Description

Errors is the implementation of the Errors Collection.

Use Errors to get direct access to the ADO Errors Collection for the ADO Connection object the TADOConnection component represents. This direct access reference allows an application to use properties and methods of the underlying Errors Collection object. Accessing the underlying connection object is especially useful for utilizing properties and methods of the Errors Collection not surfaced in TADOConnection.

The Errors Collection object of a Connection object contains the errors generated by the provider. For each provider error, one or more ADO Error objects are placed in the Errors Collection. Error objects represent individual errors from the provider and are not ADO-specific. On a subsequent error, the Errors Collection is cleared of any Error objects and new Error objects are inserted for the current error.

Note: Use of Errors to directly access the underlying ADO Errors Collection object requires a good working knowledge of ADO objects in general and ADO Errors Collection objects in specific. Using the Errors Collection object directly is not recommended unless you are familiar with connection object operations. Consult the Microsoft Data Store SDK help for specific information on using ADO Errors Collection objects.