Page 1 of 1

Database exist?

Posted: 23.01.2007, 15:53
by nsb
Hi,

How can I see if the Database exist before using TConnection.connect (with the create new database params)?

The BDE has this feature...

Posted: 25.01.2007, 13:58
by Shomer
You will need the TZSQLProcessor. Also check it with a sql:

select datname from pg_database where datname = "mydatabase"

Posted: 25.01.2007, 16:32
by mdaems