Login_LogIntoDataSource()

Examples


The Login_LogIntoDataSource() function logs the user into the named data source using the specified user ID and password.

Syntax

Login_LogIntoDataSource(data_source, user_ID, password)

Parameters

data_source – A string specifying the data source to log into.

user_ID – A string specifying the user ID to use when logging into the data source.

password – A string specifying the password to use when logging into the named data source.

Return value

An integer corresponding to one of the following constants:

[spacer]

Constant

Description

STATUS_SUCCESS

The login was successful.

STATUS_ERROR

An unknown error occurred.

STATUS_ALREADY_LOGGED_IN

That user is already logged in.

STATUS_LOGIN_FAILED

The login information was invalid.

STATUS_LOGIN_LOCKED

Login is locked.

STATUS_TOO_MANY_CONNECTIONS

The maximum number of connections to the database was reached.

STATUS_DATASOURCE_REJ

The server acknowledged the connection attempt, but rejected it. The problem was server-based.

STATUS_UNABLE_TO_CONNECT

The client computer’s ODBC drivers were unable to establish a connection to the server. The problem was client-based.

STATUS_LOGIN_PASSWORD_EXPIRED

Password has expired.

STATUS_LOGIN_PASSWORD_MUST_CHANGE

The password must be changed before the user can log in.


Comments

This command allows you to use your own login window, rather than the predefined login window the Login_OpenDexDialog() function opens.


Documentation Feedback