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 User Administration 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 Admin tab. Click “Enable login administration.”

  3. Specify the numbers for administration settings. For this tutorial, set 1 connection per user, 5 total database connections, 90 days until expiration, and 80 days until warning

    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 User Administration, the following screen appears.

    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
  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.