RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOCommand.Connection Property

Specifies ADO connection component to use.

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

Set Connection to specify the TADOConnection the command component uses to connect to the data store.

ADOCommand1.Connection := ADOConnection1;

 

ADOCommand1->Connection = ADOConnection1;

Note: the connection of an ADO command component to a data store can either be through a TADOConnection specified in the Connection property or directly through the connection string specified in ConnectionString. These two properties are mutually exclusive.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!