GrantConnectTo method

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

Syntax
Visual Basic

Public Sub GrantConnectTo( _
   ByVal uid As String, _
   ByVal pwd As String _
)
C#

public void GrantConnectTo(
   string  uid,
   string  pwd
);
Parameters
  • 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.

Remarks

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