RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLTable.PrepareStatement Method

Generates the query that TSQLTable uses to fetch data from the database server.

Pascal
procedure PrepareStatement; override;
C++
virtual __fastcall PrepareStatement();

PrepareStatement generates a SELECT query to fetch the records from the table specified by TableName, ordering by the fields in IndexFieldNames or the index in IndexName. If you have specified a master/detail relationship, PrepareStatement sets that up as well. 

Do not call PrepareStatement in your applications. Instead, set the Prepared property to true. When you use the Prepared property instead, the SQL table keeps track of the fact that it has already been prepared and need not repeat the process every time it executes. 

 

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