Page 1 of 1

ZConnection MSSQL

Posted: 10.09.2005, 09:43
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

Posted: 12.09.2005, 06:12
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).