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

SQL Anywhere 12.0.1 » UltraLite - 数据库管理和参考 » 教程:构建 UltraLite CustDB 示例应用程序

 

第 2 课:登录和填充 UltraLite 远程数据库

本课演示了如何:

  • 启动示例 MobiLink 服务器。

  • 启动示例 UltraLite 客户端应用程序。

  • 登录到 UltraLite。

在本教程中,示例应用程序与 MobiLink 服务器运行在同一台式计算机上。但您可以将客户端应用程序部署到设备并获得相同的结果。

 ♦ 启动和同步示例应用程序
  1. 单击 [开始] » [程序] » [SQL Anywhere 12] » [MobiLink] » [同步服务器示例]。或者。执行以下命令:

    mlsrv12 -c "DSN=SQL Anywhere 12 CustDB" -vcrs

    (在 Mac OS X 或 Linux 上使用 mobilink.sh。)

    该窗口显示有关 MobiLink 服务器状态的消息。

  2. 单击 [开始] » [程序] » [SQL Anywhere 12] » [UltraLite] » [Windows 示例应用程序]。

  3. 在 [文件] 菜单中单击 [同步]。

    应用程序进行同步,并且 MobiLink 服务器消息窗口将显示消息来指示同步正在进行。

    同步脚本会确定当用户 50 登录时要下载到应用程序的客户、产品和订单的子集。在本示例中,只下载尚未批准的订单。

  4. 确认公司名称和示例订单出现在应用程序窗口中。