Page 1 of 1

"No Database connected" when ich set properties by

Posted: 11.11.2006, 12:07
by Captnemo
Hi,

u'm use Delphi 7 witz Zeos 6.6.0 and MySQL 5.0.
It works fine. Wenn ich use the TZConnection and set the properties protocol, host, user, password and catalog in Objectinspector it works without errors and i can use the Connection.
But when i set the properties by code in runtime i become an error: SQL Error "No Database connected".
I don't understand the difference.
Can anybody help me?

Thanks, Captnemo

Posted: 13.11.2006, 01:13
by mdaems
Could you please post the code you wrote to create the runtime connection? Do you activate the connection after changing the properties?

Mark

Posted: 13.11.2006, 09:18
by Teun
I've got the same with the MSDE when i try to connect manual i works fine, but by the program it gives an error on read ntwlib.dll. But when i try it about 5 time's it will connect .... but it starts a new background process of the application.

Regards teun