Hi,
I have a program that uses a table component as well as an SQL component to control a microsoft access database. Whenever the program starts, I get a log in dialog for the database, is their any way to get rid of this?
In the TDataBase Class there is the Property "LoginPrompt"
Following the description from the C++Builder Help:
Description
Use LoginPrompt to control the login method for remote database connections. If true, (the default), either the standard C++Builder Login dialog box opens when the application attempts to connect to a database, or the OnLogin event is called if one is provided for the application.
The standard Login dialog box prompts for a valid user name and password. If the entries provided by the user are not valid, the connection fails. Applications that provide an OnLogin event must make sure that the event provides these values to the server.
If an application sets LoginPrompt to false, then user name and password values must be supplied as USER NAME and PASSWORD parameters in the Params property.
Note: Storing hard-coded user name and password entries in the Params property or in code for an OnLogin event can compromise server security.
hnd
hasso55@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.