- Username as CCharacter
The value of the SQL username.
- Password as C Character
The value of the SQL password.
Returns a .t. or .f. value. Check Context.Session.CallResult.Success before using the return value.
Sets the SQL username and password used for SQL connections.
Context.Session.SetSQLCredentials() sets the SQL username and password used for SQL connections. The username and password is used to resolve connection strings where the credentials have not been specified in the AlphaDAO connection. Alpha Anywhere will use the specified username and password to resolve any AlphaDAO connection strings for which the username and password are undefined.
The following Xbasic will set the SQL Credentials:
Use context.session.getSQLCredentials() to read the SQL Credentials in the current session.