Bde.DBTables.TQuery.Local

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TQuery

Delphi

property Local: Boolean read FLocal;

C++

__property bool Local = {read=FLocal, nodefault};

Description

Indicates whether a query references one or more Paradox or dBASE tables rather than SQL tables on a remote server.

Check Local to determine if a query accesses one or more Paradox or dBASE tables rather than SQL tables. If Local is true, then the query only accesses dBASE or Paradox tables. Otherwise Local is false. Local is set automatically when an application calls the query's Prepare method prior to executing the query.

Some query component settings, such as Constrained, are only meaningful for queries against Paradox and dBASE tables. Others are only meaningful for queries against remote SQL servers. Local can provide useful information for branching logic in code based on the type of database accessed. It can also be used to determine whether or not the BDE parsed a query using its local query engine rather than passing SQL statements directly to a remote server.

See Also