delphi運行后總是彈出數據庫的登陸,但是不不輸入密碼點擊確定仍然可以進行操作。
解决方案 »
- 请问这句是什么意思?
- 控件的方法
- 程序执行的一些漏洞,错误如何避免?
- 如何连接带有工作组信息文件(system.mda)的ACCESS数据库?
- 如何通过VPN访问远程SQL数据库???
- Devloper Expresse中的TcxTextEdit控件的中文输入问题
- 为什么MSCOMM里INBUFFER的东西一定时间不去取她就自动清空了??
- SpinEdit1、 SpinEdit2分别是分数查询的上限和下限,Achievement是成绩表,怎么出错?
- 这里的帖子怎么保存到硬盘上啊?XML格式的,SAVE AS不行啊
- 我看了一下各技术论坛,人气最望的就是这里了,哈哈~~庆祝~~
- 关于李维的第二章
- 异步运行时,操作不能被执行.ADO,线程
TADOConnection.LoginPrompt Property
TADOConnection Class | TADOConnection Members | ADODB Namespace | Description | See Also
Collapse AllSpecifies whether a login dialog appears immediately before opening a new connection.Pascal
property LoginPrompt: Boolean;
C++
__property Boolean LoginPrompt;
Description
Set LoginPrompt to true to provide login support when establishing a connection. LoginPrompt controls two things: the occurrence of the OnLogin event, and the appearance of a default login dialog that prompts users for a name and password when you include DBLogDlg.hpp in your unit (C++) or add DBLogDlg to your uses clause (Delphi). When the OnLogin event occurs and when the default login dialog appears depend on the type of connection component: For TDatabase, TIBDatabase, and TSQLConnection, the dialog appears after the BeforeConnect event and before the AfterConnect event, unless you supply an OnLogin event handler. If there is an OnLogin event handler, that event occurs in place of the login dialog, and there is no need to include DBLogDlg.hpp in your unit (C++) or add DBLogDlg to your uses clause (Delphi). If correct values for the user name and password are not supplied in the dialog or by the OnLogin event handler, the connection fails. The OnLogin event does not fire unless LoginPrompt is set to true. For TADOConnection components, the dialog appears after the OnWillConnect event and before the BeforeConnect event. If there is an OnLogin event handler, that event occurs after the login dialog. If you do not include DBLogDlg.hpp in your unit (C++) or add DBLogDlg to your uses clause (Delphi), the OnLogin event occurs but there is no default login dialog. If correct values for the user name and password are not supplied in the dialog or by the OnLogin event handler, the connection fails. The OnLogin event does not fire unless LoginPrompt is set to true. For DataSnap SOAP connection components, the dialog appears after the OnGetUsername event and before the BeforeConnect, AfterConnect, and OnLogin events. If the user cancels from the login dialog, no attempt is made to open a connection. When LoginPrompt is false, the application must supply user name and password values programmatically: For TDatabase, the user name and password can be supplied as USER NAME and PASSWORD parameters in the Params property. For TADOConnection, the user name and password can be supplied as the ConnectionString property. For TSQLConnection, the user name, password, and database can be supplied as UserName, Password, and Database parameters in the Params property, or provided as connection parameters associated with the connection name. For DataSnap SOAP connection components, there is no built-in use for the user name and password supplied by the login dialog. (The UserName and Password properties of TWebConnection are unrelated). Warning: Storing hard-coded user name and password entries as property values or in code for an OnLogin event handler can compromise server security.