Side effects
See also
Description
Parameters
♦
You own the procedure
♦
You have DBA authority
Syntax 5
The following condition must be met:
♦
You have DBA authority
Automatic commit.
"REVOKE statement" on page 595
The GRANT statement is used to grant database permissions to individual
user IDs and groups. It is also used to create and delete users and groups.
If WITH GRANT OPTION is specified, then the named user ID is also given
permission to GRANT the same permissions to other user IDs.
Syntax 4 of the GRANT statement is used to grant permission to execute a
procedure.
Syntax 5 of the GRANT statement creates an explicit integrated login
mapping between one or more Windows NT user profiles and an existing
database user ID, allowing users who successfully log in to their local
machine to connect to a database without having to provide a user ID or
password.
$
For more information on integrated logins see "Using integrated logins"
on page 77 of the book ASA User's Guide.
CONNECT TO
Creates a new user. GRANT CONNECT can also be used
by any user to change their own password. To create a user with the empty
string as the password, type:
GRANT CONNECT TO userid IDENTIFIED BY ""
To create a user with no password, type:
GRANT CONNECT TO userid
A user with no password cannot connect to the database. This is useful if you
are creating a group and do not want anyone to connect to the database using
the group user ID. The password must be a valid identifier, as described in
"Identifiers" on page 223.
AT starting-id
This clause is not for general purpose use. The clause
specifies the internal numeric value to be used for the first user ID in the list.
The clause is implemented primarily for use by the Unload utility.
DBA
Database Administrator authority gives a user permission to do
anything. This is usually reserved for the person in the organization who is
looking after the database.
Chapter 9 SQL Statements
541
Need help?
Do you have a question about the Adaptive Server Anywhere and is the answer not in the manual?
Questions and answers