User Tools

Site Tools


prop_logonscreen_2.htm
Navigation:  SQL Driver Properties(General) >====== PROP:LogonScreen ====== Previous pageReturn to chapter overviewNext page

PROP:LogonScreen sets or returns the value that determines whether the driver automatically prompts for logon information. By default, PROP:LogonScreen=TRUE, and the driver displays a logon window if no connect string is supplied. If set to FALSE, and there is no connect string, the OPEN(file) fails and FILEERRORCODE() returns a driver specific error code. For example:

AFile FILE,DRIVER('SQLAnywhere')

!file declaration with no userid and password

END

CODE

AFile{PROP:LogonScreen}=True   !enable auto login screen

OPEN(Afile)

In the above example, the logon screen uses the SQLAnywhere Connect dialog. Consult your specific database documentation for more information on this dialog. The end-user's ability to use the connect dialog will depend on the security surrounding the specific database. For example, the end-users may have access rights to a named database that they can access with the database's client software, but they may not have access rights to other files that comprise the database.

NoteBox.jpg

PROP:LogonScreen is valid for all SQL based drivers.

prop_logonscreen_2.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1