Subject | Re: Database off-line |
---|---|
Author | fabiano_bonin |
Post date | 2003-05-21T17:09:36Z |
--- In ib-support@yahoogroups.com, "Ivan Prenosil" <prenosil@m...>
wrote:
Yes, it's what i wanted. Thanks.
wrote:
> From: "fabiano_bonin" <fabiano@l...>connected
> > Is there some way to know if a database is off-line, via SQL
> > statement? (no problem if i have to connect to security.fdb)
>
> Via SQL - no. (To be able to execute SQL statement you have to be
> to the database, so obviously it can't be off-line :-)that
>
> You can try to rename the database file - if is succeeds, it means
> the file is not locked/used by the server.connected ?
>
>
> Or perhaps you want to know whether you are the only user
> Then you can call isc_database_info() API function to get list ofconnected users.
>database is shut-down ?
>
> Or may be you are interested in the information whether the
Yes, it's what i wanted. Thanks.
> The shut-down flag is stored on db header page, and it's state canbe find out
> via gstat -h tool, or via Services API functions.can still be connected.)
> (However, even if the database is shut down, its owner and sysdba
>fulltext db - and more ... ]
>
> Ivan Prenosil
> [ I am looking for a job: InterBase - Firebird - Delphi - C -
> Ivan.Prenosil@s...
> http://www.volny.cz/iprenosil/interbase