ok, well, my thanks to you and Gerdus for the quick answers. Marc
-----Message d'origine----- De : Jiri Cincura [mailto:disk...@cincura.net] Envoyé : lundi 24 janvier 2011 11:26 À : For users and developers of the Firebird .NET providers Objet : Re: [Firebird-net-provider] Is there a way to check if a database exists? On Mon, Jan 24, 2011 at 09:28, Marc Bettex <bet...@epsitec.ch> wrote: > I would like to know if there is a proper way to check if a given database > exists with the Firebird .Net provider. > > Currently, I try to open a connection to the database, and if this fails by > throwing an exception, I assume that this is because the database does not > exist. But that's not a solution I feel comfortable with, because there > might be other reason for the exceptions to be thrown. So, is there a better > way to do it? There's no better way. Anything can be Firebird database, there's no "master" database (like i.e. in MS SQL Server). Hence until you try access you (or server in fact ;)) don't know. -- Jiri {x2} Cincura (x2develop.com founder) http://blog.cincura.net/ | http://www.ID3renamer.com ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider