Subject Re: [firebird-support] Re: How to detect ReadOnly DB
Author Don Gollahon
"Adam" wrote:

> --- In firebird-support@yahoogroups.com, "Don Gollahon" <dlgllhn@...>
> wrote:
> >
> > I'm restoring a FB 1.5 database to be ReadOnly. It works fine but
> now
> >
> > I need to detect in my app when the DB it is using is readonly. Is
> >
> > there a way to do this?
> >
> > I'm using Delphi 6, IBO 4.5, and IBOAdmin components.
> >
> > Thanks.
>
> I am sure it is available in the services API somewhere which will be
> exposed by IBO.
>
> I would start a transaction and do something that should fail if it
> is read only, (eg attempt to increment a generator or update a
> table), handling the exception.
>
> Adam
>
>
>

I found it in IB_ConnectionInfo.

--
_________________________________________
Don Gollahon
dlgllhn@...
ICQ#: 115831669
MSN Msgr: dlgllhn@...
"What in Eternity does it matter?"
_________________________________________