On Windows CE devices, attempting to start a second SQL Anywhere database server while a first database server is already running brings the first database server to the foreground. This is standard behavior for Windows CE applications. Because of this behavior, two database servers cannot be run at the same time on a Windows CE device. As an alternative to running multiple database servers, one server can run multiple databases.
Start Sybase Central on your computer by choosing Start > Programs > SQL Anywhere 10 > Sybase Central.
Sybase Central starts.
From the Connections menu, choose Connect with SQL Anywhere 10.
The Connect dialog appears.
On the Identification tab, enter the following values:
User ID DBA
Password sql
Select the ODBC Data Source Name option.
Click Browse, choose the CEdevice data source that you created in Creating an ODBC data source to connect to your Windows CE device.
On the Database tab, type the server name CEserver in the Server Name field.
Click OK to connect to the Alpha.db database running on your Windows CE device.
Now that you have started the database server and connected to the Alpha database, you can start additional databases on your Windows CE device.
From the Context dropdown list, choose CEserver.
From the File menu, choose Start Database.
The Start Database dialog appears.
In the Database File field, type the following path: \My Documents\Beta.db
Type the server name CEserver in the Server Name field.
Click OK to start the database on the network database server.
The database is loaded on the network database server. Now you must initiate a connection from your computer.
In the right pane of Sybase Central, select the Beta database icon.
This icon represents the database that you just started on your Windows CE device.
From the File menu, choose Connect.
The Connect dialog appears.
On the Identification tab, enter the following values:
User ID DBA
Password sql
On the Database tab, type the database name \My Documents\Beta.db in the Database File field.
Click OK to connect to the Beta database running on your Windows CE device.
You can now view and manipulate the data in the Alpha and Beta databases using Sybase Central.
Next, you will learn how to disconnect from the databases and shut down the database server on Windows CE.