RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomADODataSet.Connection Property

Specifies the ADO connection component to use.

Pascal
property Connection: TADOConnection;
C++
__property TADOConnection Connection;

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.
 

 

ConnectionString 

Using Query-type Datasets 

Using Stored Procedure-type Datasets 

Using Table Type Datasets 

Connecting to a Data Store Using TADOConnection 

Connecting an ADO Dataset to a Data Store 

Using TADODataSet 

Connecting Directly to a Database Server

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!