Subject | How to mark a database read-only? |
---|---|
Author | Shawn Rutledge |
Post date | 2008-02-27T22:29:54Z |
I found this command
gfix -user SYSDBA -password masterkey dbfile -mode read_only
which makes it possible to do queries on a database file which is
read-only (located on a read-only filesystem for example). Is there a
way to accomplish that using a SQL command instead?
Alternatively is there a way to open a database in read-only mode
using QSqlDatabase, even when it has not been marked read_only? Maybe
using setConnectOptions() or some such?
gfix -user SYSDBA -password masterkey dbfile -mode read_only
which makes it possible to do queries on a database file which is
read-only (located on a read-only filesystem for example). Is there a
way to accomplish that using a SQL command instead?
Alternatively is there a way to open a database in read-only mode
using QSqlDatabase, even when it has not been marked read_only? Maybe
using setConnectOptions() or some such?