RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TADOCommand.CommandText Property

Specifies command to execute.

Pascal
property CommandText: WideString;
C++
__property BSTR CommandText;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!