RAD Studio VCL Reference
TADOCommand.Connection Property

Specifies ADO connection component to use.

property Connection: TADOConnection;
__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!