Bde.DBTables.TDatabase.ReadOnly

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;

C++

__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};

Properties

Type Visibility Source Unit Parent
property published
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TDatabase

Description

Specifies that the database connection provides read-only access.

Use ReadOnly to specify whether the database connection should allow the application to update the tables and other metadata in the database. Set ReadOnly before opening the database.

When ReadOnly is false (the default), the application can modify tables and database metadata (like indexes). When ReadOnly is true, applications can browse tables but cannot update them. The application is also prevented from creating or deleting metadata objects like tables and indexes.

Note: A ReadOnly property value of true should be used when accessing a dBASE or Paradox database on a read-only storage medium, such as a CD.

Note: For SQL databases, if ReadOnly is true, you must also explicitly set the ReadOnly property to true for dataset components like TTable and TQuery.

See Also