Use the following procedures to add a remote user.
Connect to the database as a user with DBA authority.
In the left pane, select the SQL Remote Users folder.
From the File menu, choose New » SQL Remote User.
Follow the instructions in the Create Remote User Wizard.
Connect to the database as a user with DBA authority.
In the left pane, select the SQL Remote Users folder.
Right-click the user and choose Change To Remote User.
In the window, select the message type, enter an address, choose the send frequency, and click OK.
Connect to the database as a user with DBA authority.
Execute a CREATE USER statement to create a user.
For example:
CREATE USER remote1; |
Execute a GRANT CONNECT statement to grant the user CONNECT permission. See GRANT statement.
For example:
GRANT CONNECT TO remote1; |
Execute a GRANT REMOTE statement to grant the user REMOTE permission. See GRANT REMOTE statement [SQL Remote].
For example:
GRANT REMOTE TO userid; |
For example, the following statement grants REMOTE permission to user S_Beaulieu, and specifies that the remote database:
Uses an SMTP email as its message system.
Sends messages using the email address s_beaulieu@acme.com:
Sends message daily at 10 P.M.
GRANT REMOTE TO S_Beaulieu TYPE smtp ADDRESS 's_beaulieu@acme.com' SEND AT '22:00'; |
The following statement grants REMOTE permission to user rem1, and specifies that rem1's remote database uses a FILE message system with the address rem1.
GRANT CONNECT TO rem1 IDENTIFIED BY SQL GRANT REMOTE TO rem1 TYPE FILE ADDRESS 'rem1'; |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |