A new user is added to a database by the DBA using the GRANT CONNECT statement. For example:
Adding a new user to a database, with user ID M_Haneef and password welcome
From DBISQL, connect to the database as a user with DBA authority.
Issue the SQL statement:
GRANT CONNECT TO M_Haneef IDENTIFIED BY welcome
Only the DBA has the authority to add new users to a database.
By default, new users are not assigned any permissions beyond connecting to the database and viewing the system tables. In order to access tables in the database they need to be assigned permissions.
The DBA can set the permissions granted automatically to new users by assigning permissions to the special PUBLIC user group, as discussed in “Special groups”.
You may want to put commands for setting up new users into a DBISQL command file. Command files help you standardize the way you perform processes you repeat over time. For details on using command files, see Chapter 2, “Using Interactive SQL (dbisql),” in the Sybase IQ Utility Guide.
Creating a user in Sybase Central
Connect to the database.
Click the Users & Groups folder for that database.
Double-click Add User. A Wizard is displayed, which leads you through the process.
For more information, see the Sybase Central online Help.