RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDatabase.ReadOnly Property

Specifies that the database connection provides read-only access.

Pascal
property ReadOnly: Boolean;
C++
__property Boolean ReadOnly;

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.
 

 

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