New users must be added from an existing connection. As all UltraLite databases are created with a default user ID of DBA and password sql, you must first connect as this user.
You cannot directly change a user ID. Instead, add the new user ID and delete the existing user ID. UltraLite supports a maximum of four user IDs for each UltraLite database.
See Authenticating users.
Connect to the database using the user ID and password of an existing user.
Grant user access to the database with the desired password using the ULConnection.GrantConnectTo method.
This procedure is the same whether you are adding a new user or changing the password of an existing user.
See ULConnection class.
Connect to the database using the user ID and password of an existing user.
Delete an existing user using the Connection.RevokeConnectFrom method.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |