RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAdoDbxDataAdapter.SelectCommand Property

A TAdoDbxCommand used during Fill to select records from the database for placement in the DataSet.

Pascal
property SelectCommand: TAdoDbxCommand;
C++
__property TAdoDbxCommand SelectCommand;

This property contains the SQL SELECT statement you assign to it. The property serves as a shorthand method for referring to a SQL statement that you expect to use many times.

Note: When you assign the SelectCommand to a previously created TAdoDbxCommand, the TAdoDbxCommand is not cloned. The SelectCommand maintains a reference to the previously created TAdoDbxCommand object. If the SelectCommand does not return any rows, no tables are added to the DataSet, and no exception is raised.
 

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