ZConnection MSSQL

Forum related to version 6.1.5 of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
marcoimpe
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 10.09.2005, 09:19

ZConnection MSSQL

Post by marcoimpe »

I am new in C++ Builder 5 Professional and Zeos

Insert a ZConnection MSSQL and LoginPrompt = true,
but when I am connected

display this message
Can not find default login prompt dialoog.
Please add dbLogDlg to the user section of your main file


Many thanks in advance

P.S. Sorry for my english
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

Hi marcoimpe,

also to you a warm :welcome: to our forum!

The "bug" you are discribing was also reported in the german "Delphi Praxis"-Forum. And there is a manual workaround to your problem:
  • Create your own Login-Dialog (with username and passwort fields)
  • Set ZConnection.LoginPrompt=false !
Before you connect:
  • Retrieve the needed login data from user (before connecting to the database), using your login dialog
  • Put the username and the passwort into the designated propertis of your ZConnection
  • ... and now: connect ...
This is the procedure how I personally do logins in my applications (if needed).
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
Post Reply