Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » UltraLite - .NET Programming » UltraLite .NET 2.0 API reference » ULConnection class


GrantConnectTo method

UL Ext.: Grants access to an UltraLite database for a user ID with a specified password.

Visual Basic
Public Sub GrantConnectTo( _
   ByVal uid As String, _
   ByVal pwd As String _
public void GrantConnectTo(
   string  uid,
   string  pwd
  • uid   The user ID to receive access to the database. The maximum length of the user ID is 16 characters.

  • pwd   The password to be associated with the user ID. The maximum length is 16 characters.


If an existing user ID is specified, this function updates the password for the user. UltraLite supports a maximum of 4 users. This method is enabled only if user authentication was enabled when the connection was opened.

See also