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

SQL Anywhere 12.0.0 (中文) » SQL Anywhere 服务器 - 数据库管理 » 启动并连接到数据库 » SQL Anywhere for Windows Mobile » 连接到在 Windows Mobile 设备上运行的数据库

 

在 Windows Mobile 设备上启动数据库服务器

如果要从台式计算机连接到在 Windows Mobile 上运行的数据库服务器,则在启动服务器时,必须选择 TCP/IP 选项。

 ♦  启动 Windows Mobile 设备上用于远程连接的数据库服务器
  1. 从 [开始] 菜单中,单击 [程序] » [SQLAny12]。

  2. 单击 [服务器]。

  3. 在 [数据库] 字段中键入要启动的数据库文件的名称,或单击 [浏览] 找到要启动的数据库。

    缺省情况下,示例数据库位于 \My Documents\demo.db 中。

  4. 在 [服务器名] 字段中键入要使用的数据库服务器名。

    示例数据库服务器的缺省名称为 demo

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

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

  6. 选择 [使用 TCP/IP]。

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

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

现在,您可以创建 ODBC 数据源以从台式计算机连接到 Windows Mobile 设备。

 另请参见