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

SQL Anywhere 10.0.1 » SQL Anywhere Server - Database Administration » SQL Anywhere for Windows CE » Connecting to a database running on a Windows CE device

Creating an ODBC data source to connect to your Windows CE device Next Page

Determining the IP address of your Windows CE device


When connecting to a database that is running on Windows CE, you may need the IP address to establish the connection.

If you have an ActiveSync connection via USB, such as when the device is cradled, you must set up a proxy port to be able to connect to the Windows CE database. See Creating proxy ports for Windows CE devices.

To determine the IP address of your Windows CE device
  1. Open File Explorer on your Windows CE device.

    From the Start menu, tap Programs > File Explorer.

  2. Navigate to the SQL Anywhere installation directory by tapping Program Files > SQLAny10.

  3. Tap the dbsrv10 icon.

    The Server Startup Options dialog appears.

    Server Startup Options dialog
  4. Specify the database file that you want to start.

    Use the Browse button to locate the database.

  5. Specify the server name that you want to use.

    For example, type CEserver in the Server Name field of the Server Startup Options dialog.

  6. Select Use TCP/IP.

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

  7. In the Options field of the Server Startup Options dialog, type -z.

    With the -z option, the server writes out its IP address during startup. The address may change if you disconnect your Windows CE device from the network and then re-connect it.

    For more information, see -z server option.

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

  9. Navigate to the Today screen on your device.

  10. Tap the Server icon located in the bottom right corner of the screen.

    The Server Messages window appears. The IP address appears in the Server Messages window.

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

For more information, see Creating an ODBC data source to connect to your Windows CE device.