Subject Re: census cases of databases corruption
Author andreachiado
"Helen Borrie" <helebor@...> ha scritto nel messaggio
news:5.1.0.14.2.20030511203945.03880bf8@......

> Unfortunately, it doesn't refuse connections while a restore is
taking
> place. I agree, it would be nice if it did. However, the first
thing
> Restore does is to create the file for the database and then use
some of
> the stored meta-metadata to create the database itself. Once the
file
> exists and the database exists, users can log into it, even though
the
> restore process is still continuing.
>
> >Just do a restore using another name for the database, and after is
finished
> >rename it.

Helen,

a good and simple solution could be to instruct gbak to create a
temporary
restore-file
and once finished rename it to the real name we pass as parameter.
Also, it
can be a good solution to know if restore finish ok.

Sorry my poor english
Ciao

--
Andrea Chiadò Piat
Bit Informatica s.r.l.
Progettazione e Sviluppo