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

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » SQL Anywhere database connections » SQL Anywhere database servers » How to run the database server as a service or daemon

 

Creating Windows services (dbsvc utility)

You can create a Windows service using the dbsvc utility.

Prerequisites

There are no prerequisites for this task.

Context and remarks

Each database server can run more than one database. When you run more than one database at a time, it is recommended that you do so by adding new databases to your existing Windows service, rather than by creating new services.

 Task
  • Run the Service utility (dbsvc) with the -w option.

Results

A new Windows service is created.

Example

The following command creates a Windows service called myserv where the database server runs as the LocalSystem user.

dbsvc -as -w myserv "C:\Program Files\SQL Anywhere 16\Bin32\dbsrv16.exe"
 -n william -c 8m "c:\temp\sample.db"

 See also