Data.Win.ADODB.TADOCommand.CommandText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property CommandText: WideString read FCommandText write SetCommandText;

C++

__property System::WideString CommandText = {read=FCommandText, write=SetCommandText};

Properties

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

Description

Specifies command to execute.

Use CommandText to specify the command to execute using the ADO command component. CommandText is a textual representation of the command such as an SQL statement, a table name, or the name of a stored procedure to execute.



ADOCommand1.CommandText := 'DROP TABLE Employee1986';



ADOCommand1->CommandText = "DROP TABLE Employee1986";



If the command includes parameters, as might be the case with an SQL statement or stored procedure, access the them through the Parameters property.

See Also