RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTable.ReadOnly Property

Specifies whether a table is read-only for this application.

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

Use the ReadOnly property to prevent users from updating, inserting, or deleting data in the table. By default, ReadOnly is false, meaning users can potentially alter a table's data.

Note: Even if ReadOnly is false, users may not be able to modify or add data to a table. Other factors, such as insufficient SQL privileges for the application or its current user may prevent successful alterations.
To guarantee that users cannot modify or add data to a table, 

1Set the Active property to false. 

2Set ReadOnly to true. 

When ReadOnly is true, the table's CanModify property is false. 

 

Active 

CanModify 

Controlling Read/Write Access to Local Tables

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