Data.Win.ADODB.TADOCommand.Connection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Connection: TADOConnection read FConnection write SetConnection;

C++

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

Properties

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

Description

Specifies ADO connection component to use.

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.

See Also