Adding a user to the database

This section describes how to add a user to a database.

StepsAdding a user to the sample database

Create users in order to add permissions to database objects.

  1. For Sybase IQ Login Management functionality, right-click the database and choose Properties from the submenu. If you do not wish to manage logins for this user, skip to Step 4.

  2. Choose the Login Management tab. Click “Enable Login Management” or Alt+L.

  3. Type the values for settings. For this tutorial, set 1 connection per user, 5 total database connections, 90 days until expiration, and 80 days until warning. Click Apply.

    Shown is the D B A database properties window with the login admin tab active
  4. Select the Users & Groups folder in the left panel. You may need to expand the sample database container in the left panel to do this.

  5. Click New User Shown is the new group toolbar button toolbar button, or choose Alt+F, N, U.

  6. Type the name Sandy in the text box and click Next. This is the user ID for the new user.

  7. Check “Allow this user to connect” and type a password. Alt+C or tab to the Confirm box, and retype the password. For example, you could use the password “beach”.

    If you have enabled Sybase IQ Login Management, the login management screen appears.

    On a non-multiplex server, the screen is similar to the following. You can select Login locked to lock this user out of the database, if desired. You can also modify the number of active connections and days the password is valid. The remaining limits are set on the database (see Step 3).

    Shown is the create new user window

    On a multiplex server, the lower half of the screen displays server-specific data: the names of write and query servers, the maximum connections for each, and whether the user is locked out of that server. Values set by the user in the upper portion of the form reflect immediately in the lower portion. Server-specific values default to zero connections (no restriction) and not locked out.

  8. Click Next. The authorities screen displays. To select the authority desired for the new user, check the option or apply the shortcut key combination from the following list:

    • DBA (Alt+D) — Can fully administer the database

    • Resource (Alt+R) — Can create database objects

    • Remote (Alt+m) — Required by SQL Remote

    For this tutorial, grant DBA authority.

  9. Click Next. Type “Sales dept. intern” in the Comment box.

  10. Click Finish to create the new user.