db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: check if DB exists already?
Date Thu, 09 Aug 2007 20:54:11 GMT
Teja wrote:
> How do I check if the database exists already? I know create=true in the
> connection url creates if db doesn't exist and throws a SQLWarning if exists
> already, but is there a way to know for sure that a database exists already
> before connecting?

Why not just attempt a connection? What do you gain by knowing if the 
database exists or not?

Dan.

Mime
View raw message