Bde.DBTables.TQuery.UnPrepare
| [–] Properties | |
|---|---|
| Type: procedure function
| |
| Visibility: public | |
| Source: Bde.DBTables.pas Bde.DBTables.hpp
| |
| Unit: Bde.DBTables | |
| Parent: TQuery | |
Delphi
procedure UnPrepare;
C++
void __fastcall UnPrepare();
Description
Frees the resources allocated for a previously prepared query.
Call UnPrepare to free the resources allocated for a previously prepared query on the server and client sides.
Preparing a query consumes some database resources, so it is good practice for an application to unprepare a query once it is done using it. The UnPrepare method unprepares a query.
Note: When you change the text of a query at runtime, the query is automatically closed and unprepared.