RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.FlushSchemaCache Method

Flushes the cached schema information for a table.

Pascal
procedure FlushSchemaCache(const TableName: string);
C++
__fastcall FlushSchemaCache(const AnsiString TableName);

Call FlushSchemaCache if the schema information for an SQL table is changed (for example, because a field, index, or table is added to or dropped from a database). 

When an application opens an SQL table, schema information that describes the field names, field types, and index information is stored in memory. If an application changes the schema for an SQL table, it should call FlushSchemaCache to update the schema information in memory. 

 

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