IBX.IBServices.TIBConfigService.SetReadOnly
Delphi
procedure SetReadOnly (Value: Boolean);
C++
void __fastcall SetReadOnly(bool Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | IBX.IBServices.pas IBX.IBServices.hpp |
IBX.IBServices | TIBConfigService |
Description
Sets the database to read only.
Call SetReadOnly to set the database to read only.
Access mode specifies the type of access a transaction has for the table it uses. There are two possible modes: read-only and read-write.
- Read-only specifies that a transaction can read data from a table, but cannot insert, update, or delete table data.
- Read-write specifies that a transaction can select, insert, update, and delete table data. This is the default setting if none is specified.
Tip: You should specify the transaction's access mode even if is read-write. It makes the application's source code easier to read and debug, because the program's intentions are clearly spelled out.
Note: You must install InterBase 6 to use this feature.