Contents Index -m database option -r database option

ASA Database Administration Guide
  The Database Server
    The database server
      Database options

-n database option

Function 

Set the name of the database.

Syntax 

dbsrv9 | dbeng9 } [
        server-options ]
        database-file -n string ...

Applies to 

All operating systems and servers.

Description 

Both database servers and databases can be named. Since a database server can load several databases, the database name is used to distinguish the different databases.

By default, the database receives the name of the database file with the path and extension removed. For example, if the database is started on c:\asa\asademo.db and no -n option is specified, the name of the database is asademo.

Example 

The following example starts the database server with a cache size of 3Mb, loads the sample database, and names the sample database "test".

dbsrv9 -c 3Mb "c:\Program Files\Sybase\SQL Anywhere 9\asademo.db" -n "test"
There are two -n options  
The -n option is positional. If it appears before a database file name, it is a server option and names the server. If it appears after a database file name, it is a database option and names the database.

For example, the following command names the server SERV and the database DATA:

dbsrv9 -n SERV asademo.db -n DATA

For more information, see -n server option.


Contents Index -m database option -r database option