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 服务器 - 数据库管理 » SQL Anywhere 数据库连接 » SQL Anywhere for Windows Mobile » 教程:从 Sybase Central 运行 Windows Mobile 数据库

 

第 2 课:启动数据库服务器

在 Windows Mobile 设备上启动数据库服务器并连接到 Alpha.db

前提条件

本课假定您已完成前面的所有课程。请参见第 1 课:创建 Windows Mobile 数据库

 任务
  1. 在 Windows Mobile 设备上,单击 [开始] » [程序] » [SQLAny16]。

  2. 单击 [服务器]。

    1. 在 [数据库] 字段中,键入 Alpha.db

    2. 在 [服务器名] 字段中键入 MobileServer

    3. 在 [选项] 字段中,键入 -gd all -x tcpip(port=2639)

      -gd 选项设置的权限允许任何用户在网络数据库服务器上启动其它数据库。在以后的课程中需要使用此权限。请参见-gd 数据库服务器选项

      数据库服务器使用的端口是 2639。应尽量避免使用端口 2638,因为它是运行在桌面系统上的 SQL Anywhere 服务器的缺省 TCP/IP 端口。有关详细信息,请参见-x 数据库服务器选项

    4. 单击 [使用 TCP/IP]。

      要从台式计算机连接到 Windows Mobile 设备上运行的数据库,必须使用 TCP/IP 连接。

    5. 单击 [确定] 启动在网络数据库服务器上运行的示例数据库。

  3. 浏览至设备上的 [今天] 屏幕。

  4. 单击位于屏幕右下角的数据库服务器图标。

结果

运行 Alpha 数据库的数据库服务器已启动。

下一个

消息 [立即接受请求] 显示在数据库服务器消息窗口后,前进至第 3 课:从 Sybase Central 连接到 Windows Mobile 数据库