Creating a user and assigning a login policy

If you create a user account and do not assign a login policy, they are assigned the root login policy.

To create a new user and assign a login policy (Sybase Central)

  1. Connect to the database as a user with DBA authority.

  2. Right-click Users & Groups and choose New » User.

    The Create User Wizard appears.

  3. Follow the instructions in the wizard.

To create a new user and assign a login policy (SQL)

  1. Connect to the database as a user with DBA authority.

  2. Execute a CREATE USER statement.

Example

This example creates a user called SQLTester with the password "welcome" and assigns the Test1 login policy.

CREATE USER SQLTester IDENTIFIED BY welcome
LOGIN POLICY Test1;
See also