"No Database connected" when ich set properties by

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

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
Captnemo
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 11.11.2006, 00:47

"No Database connected" when ich set properties by

Post 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
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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
Teun
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 31.10.2006, 21:37
Location: Oegstgeest

Post 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
Post Reply