Hi,
We have an environment where we connect some databases, but not all, read-only. These databases are replication targets, so read-only is the only option for these databases.
Now we want to determine in ABL whether a database is connected read-only or not. Is that possible and how?
We're on OE 11.5.1.
Thanks,
- Martin
If you want to specifically know what parameters were used to connect to a database, use the DBPARAM function.
e.g.
MESSAGE DBPARAM("<dbname>") VIEW-AS ALERT-BOX.
Found it: it's in the _DbParams VST. Look for _DbParams-Name = "-ERO", _DbParams-Value = "1" when read-only, "0" when not. I just searched for -RO, not -ERO.
Also, its one of the entries reported by the DBRESTRICTIONS()-function.
Problem solved!
If you want to specifically know what parameters were used to connect to a database, use the DBPARAM function.
e.g.
MESSAGE DBPARAM("<dbname>") VIEW-AS ALERT-BOX.