RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBClientDataSet.CommandText Property

Specifies what data to fetch from the database server.

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

CommandText is used to get or set the query that the internal TIBDataSet component uses to fetch its data. This is the same as the text of the internal dataset's SelectSQL property. 

If CommandText is an SQL statement that includes parameters or the name of a stored procedure that has parameters, use the Params property to supply parameter values.

Note: If the FileName property is set, CommandText is ignored and the data is fetched from the specified file.
Warning: Do not remove poAllowCommandText from the Options property. If you do, the value of CommandText will be ignored.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!