Data.Win.ADODB.TCustomADODataSet.Connection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Connection: TADOConnection read GetConnection write SetConnection;

C++

__property TADOConnection* Connection = {read=GetConnection, write=SetConnection};

Properties

Type Visibility Source Unit Parent
property published
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TCustomADODataSet

Description

Specifies the ADO connection component to use.

Use Connection to specify an ADO connection object to use to connect to an ADO data store.

At design-time, select from the list of available TADOConnection objects (if any have been added to the application) invoked from the Object Inspector.

At runtime, set Connection to reference an existing TADOConnection object.

ADOTable1.Connection := ADOConnection1;

ADOTable1->Connection = ADOConnection1;

Note: a connection to an ADO database can be established either using a separate TADOConnection object (configured to connect to the database) or directly with a valid entry in the ConnectionString property.

See Also


Code Examples