This section describes the simple case of running a single database on Windows Mobile.
From the Start menu, tap Programs » SQLAny12.
Tap Server.
In the Database field, type the name of the database file that you want to start or tap Browse and locate the Alpha.db file in the My Documents directory.
In the Server Name field, type MobileServer.
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 dbeng12/dbsrv12 server option.
The port that the database server will use is 2639. It is best to avoid the use of 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 dbeng12/dbsrv12 server option.
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.
Tap OK to start the sample database running on the network database server.
Navigate to the Today screen on your device.
Tap the database server icon located in the bottom right corner of the screen.
When the message Now accepting requests appears in the database server messages window, you can proceed to the next lesson.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |