Subject | Re: [firebird-support] How can I check if a database is online or shutdown? |
---|---|
Author | Ivan Prenosil |
Post date | 2007-04-14T08:51:03Z |
>I am using firebird 2.0.1 and delphi 7.Can't you simply make backup ?
>
> I want to to a program a procedure to backup and/or restore a database.
> My program would first do the following:
> a) That only the user doing the backup is logged in
> b) check that the user is only user is SYSDBA
> c) Chech if the database is "online" or "Shutdown". (don't know how to
> do this)
> d) Shudown DB if not already shutdow.
> e) do the operation (backup or restore)
> f) Bring DB Online
Ivan