Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Database Administration » The Database Server » The SQL Anywhere database server » Database server options

-gc server option Next Page

-gd server option

Sets the permissions required to start or stop a database.


{ dbsrv10 | dbeng10 } -gd { DBA | all | none } ...

Applies to

All operating systems and servers.


This is the permission required for a user to cause a new database file to be loaded by the server, or to stop a database on a running database server. The level can be one of the following:

The default setting is all for the personal database server, and DBA for the network database server. Both uppercase and lowercase syntax is acceptable.

Note that when this option is set to DBA, the client application must already have a connection to the server to start or stop a database. Providing a DBA user ID and password on a new connection isn't sufficient.

You can obtain the setting of the -gd option using the StartDBPermission server property:

SELECT PROPERTY ( 'StartDBPermission' )

The following steps illustrates how to use the -gd option for the network database server.

  1. Start the network database server:

    dbsrv10 -x tcpip -su mypwd -n myserver -gd DBA
  2. Connect to the utility database from Interactive SQL:

    dbisql -c "UID=DBA;PWD=mypwd;ENG=myserver;DBN=utility_db"
  3. Start a database:

    ON myserver;
  4. Connect to the database you have started:

    TO myserver
    DATABASE demo