Data.Win.ADODB.TADOCommand.CommandText

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Unit: Data.Win.ADODB
Parent: TADOCommand

Delphi

property CommandText: WideString read FCommandText write SetCommandText;

C++

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

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