Page 1 of 1

Query Database/Catalog Names

Posted: 14.09.2009, 18:13
by aksdb
I'm trying to assist the users of my application to pick a database name on the selected database server. I already found the function GetCatalogNames which basically does what I want, but the problem is, that it requires me to establish a connection via ZConnection which in turn already wants a database name to be supplied.
Is there a way to query the database names by only specifying host, port, user and password?

Posted: 22.09.2009, 23:47
by mdaems
I think it might be possible by setting the ZConnection properties correctly. Have a look at . I believe adding 'dbless=true' might be the solution. Have a look at TZMySQLConnection.Open.
Mark