Contents Index The Service Creation utility Service creation utility options

ASA Database Administration Guide
  Database Administration Utilities
    The Service Creation utility

Managing services using the dbsvc command-line utility


Syntax 

dbsvc [ options ] <svc>

dbsvc [-q] [-y] -d <svc>

dbsvc [-q] -g <svc>

dbsvc [-q] -l

dbsvc [-q] [-y] <creation options> -w <svc> <details>

Option Description
-a acct Account name to use (used with -p)
-as Use local system account
-d Delete a service
-i Allow service to interact with desktop
-g Get details of a service
-l List all Adaptive Server Anywhere services
-p Password for account (used with -a)
-q Do not print banner
-rg dependency,... Specify group dependencies when creating a service
-rs dependency,... Specify service dependencies when creating a service
-s startup Startup option (default manual). You must specify automatic, manual, or disabled
-t type Type of service
uservice_name starts the service named service_name
-w executable parameters Create write service
xservice_name Stops the service named service_name
-y Delete or overwrite service without confirmation
Description 

A service runs a database server or other application with a set of options. This utility provides a comprehensive way of managing Adaptive Server Anywhere services on Windows. The Service Creation utility provides the same functionality as the Service Creation wizard in Sybase Central.

You must be a member of the Administrators group on the local machine to use the Service Creation utility.

Exit codes are 0 (success) or non-zero (failure).

For more information about services, see Understanding Windows services.

This utility accepts @filename parameters. For more information, see @filename server option.

Examples 

Create a personal server service called myserv, which starts the specified engine with the specified parameters. The engine runs as the LocalSystem user:

dbsvc -as -w myserv "C:\Program Files\Sybase\SQL Anywhere 9\win32\dbeng9.exe" -n myeng -c 8m "C:\Program Files\Sybase\SQL Anywhere 9\sample.db"

Create a network server service called mynetworkserv. The server runs under the local account, and starts automatically when the machine is booted:

dbsvc -as -s auto -t network -w mynetworkserv "C:\Program Files\Sybase\SQL Anywhere 9\win32\dbsrv9.exe" -x tcpip -c 8m "C:\Program Files\Sybase\SQL Anywhere 9\sample.db"

List all details about service myserv:

dbsvc -g myserv

Delete the service called myserv, without prompting for confirmation:

dbsvc -y -d myserv

Create a service dependent on the Workstation service and the TDI group:

dbsvc -rs Workstation -rg TDI -w ...

Create a service called Adaptive Server Anywhere - mysyncservice:

dbsvc -as -s manual -t dbmlsync -w mysyncservice "C:\Program Files\Sybase\SQL Anywhere 9\win32\dbmlsync.exe" -c "dsn=ultralite 9.0 sample"

Service creation utility options

Contents Index The Service Creation utility Service creation utility options