Subject | Re: How to detect ReadOnly DB |
---|---|
Author | Adam |
Post date | 2006-06-22T04:27:42Z |
--- In firebird-support@yahoogroups.com, "Don Gollahon" <dlgllhn@...>
wrote:
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
wrote:
>now
> I'm restoring a FB 1.5 database to be ReadOnly. It works fine but
>I am sure it is available in the services API somewhere which will be
> 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.
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