Subject Re: dropping a database, but only if it already exists
Author Adam
--- In firebird-support@yahoogroups.com, Richard <RichardM@m...> wrote:
> Hi,
> What would be the best syntax to use if I wanted to drop a database,
but
> only if it already existed?
>
> Thanks
> --
> Richard Mace

Why not just drop it anyway? Who cares if you get a does not exist
exception, just ignore it. The goal is to have the database not there
after you execute the drop, so if it is not there anyway, you haven't
lost anything.

Adam