Setting the Access Mode
Go Up to Setting Database Properties Using InterBase Services
Set the SetReadOnly
method of the IBConfigService
component to True
to set the database access mode to read-only.
procedure TDBConfigForm.CheckBox1Click(Sender: TObject); begin with IBConfigService1 do begin SetReadOnly(True); end; end;
- Note: Once you set the database to read-only, you will be unable to change any of the other database options until you set
SetReadOnly
method toFalse
again.
For more information on access mode, refer to “Read-only databases” in the Operations Guide.