Database exist?

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
nsb
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 17.01.2007, 22:41

Database exist?

Post 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...
Shomer
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 10.04.2006, 15:54

Post by Shomer »

You will need the TZSQLProcessor. Also check it with a sql:

select datname from pg_database where datname = "mydatabase"
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Post Reply