Subject RE: [firebird-support] Can you get firebird to check a database existence ?
Author Craig Stevens

Yes, connected to the alias DB, this does check its existence which is fine, so i moved to the next part of my problem, which is to discover whether the alias db is the newer RESTORED version, i can test its existence by connection, however now i need to know that it was restored correctly, i guess i need its file info such as the datetime stamp of the file ??? otherwise testing existence means i could get a positive result for restoration even though my restore routine did not actually work..thanks for your help


-----Original Message-----
From: Daniel Rail [mailto:daniel@...]
Sent: Tuesday, 28 September 2004 8:06 PM
Subject: Re: [firebird-support] Can you get firebird to check a database existence ?


At September 27, 2004, 23:26, Craig Stevens wrote:

> Can firebird do something similar to delphi's FileExist function
> given only the database Alias name ???

> I have a need to confirm a restored database works by testing to
> see if the restore db exists, but given only an aliasname it seems
> not possible, but im sure it is..if Firebird restores the db to the
> path as per the aliases.conf file, how can i obtain t
> his path from the alias ?? is there a function i am not aware of ???

The simplest way I can think of would be to try to connect to the
database. And, if the connection fails, look at the error message and
error number. If the database file can't be found, usually the error
message will indicate that. Have you already tried to connect to a DB
via an alias where the corresponding db file doesn't exists?

Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (
ACCRA Med Software Inc. (

Yahoo! Groups Sponsor

<*> click here


Yahoo! Groups Links

* To visit your group on the web, go to:

* To unsubscribe from this group, send an email to: <>

* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <> .


Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.

[Non-text portions of this message have been removed]