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

SQL Anywhere 12.0.0 (Français) » SQL Anywhere Server - Database Administration » Starting and connecting to your database » SQL Anywhere for Windows Mobile » Connecting to a database running on a Windows Mobile device


Start a database server on your Windows Mobile device

If you want to connect from your desktop computer to a database server that is running on Windows Mobile, you must select the TCP/IP option when starting the server.

 ♦  To start the database server on your Windows Mobile device for a remote connection
  1. From the Start menu, tap Programs » SQLAny12.

  2. Tap Server.

  3. In the Database field, type the name of the database file that you want to start or click Browse to locate the database.

    By default, the sample database is located in \My Documents\demo.db.

  4. In the Server Name field, type the database server name that you want to use.

    The default name for the sample database server is demo.

  5. In the Options field, type -x tcpip(port=2639).

    The port that the database server will use is 2639. It is best to avoid the use of port 2638 which is also the default TCP/IP port for a SQL Anywhere server running on your desktop system. For more information, see -x dbeng12/dbsrv12 server option.

  6. Select Use TCP/IP.

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

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

Now you can create an ODBC data source to connect from the desktop computer to your Windows Mobile device.

 See also