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 for Windows Mobile » Tutorial: Running Windows Mobile databases from Sybase Central

 

Lesson 2: Starting a database server

Start a database server on your Windows Mobile device and connect to Alpha.db.

Prérequis

This lesson assumes that you have completed all preceding lessons. See Lesson 1: Creating Windows Mobile databases.

 Task
  1. On your Windows Mobile device, tap Start » Programs » SQLAny16.

  2. Tap Server.

    1. In the Database field, type Alpha.db.

    2. In the Server Name field, type MobileServer.

    3. In the Options field, type -gd all -x tcpip(port=2639).

      The -gd option sets the permissions to allow any user to start additional databases on the network database server. This is necessary in a later lesson. See -gd database server option.

      The port that the database server uses is 2639. It is best to avoid using port 2638 because it is the default TCP/IP port for a SQL Anywhere server running on your desktop system. For more information, see -x database server option.

    4. Click Use TCP/IP.

      A TCP/IP connection is necessary to connect from a desktop computer to the database running on your Windows Mobile device.

    5. Tap OK to start the sample database running on the network database server.

  3. Navigate to the Today screen on your device.

  4. Tap the database server icon located in the bottom right corner of the screen.

Résultat

A database server is started with the Alpha database running.

Suivant

When the message Now accepting requests appears in the database server messages window, proceed to Lesson 3: Connecting to a Windows Mobile database from Sybase Central.