This lesson demonstrates how to quickly test your synchronization model.
This lesson assumes you have completed all preceding lessons. See Lesson 1: Setting up a MobiLink consolidated database.
This lesson assumes that you have the roles and privileges listed in the Privileges section at the start of this tutorial: Tutorial: Introducing MobiLink.
In the left pane of Sybase Central under MobiLink 16, expand mlintro_project » Synchronization Models » sync_mlintro.
Click File » Test.
Click OK to dismiss the warning indicating that your consolidated database will be modified.
The synchronization model is deployed to the consolidated database and a remote database is created for testing purposes. The MobiLink server is started.
Click the Data tab. The top pane shows rows from the Product table in the consolidated database. The bottom pane shows that the remote database currently contains no rows in the Product table.
If more than one table were defined, the Show dropdown list would let you select which table to view.
Click Synchronize. The three rows now appear in the remote database.
Select the Client Log tab. Scan the log for error messages or warnings. Do the same on the MobiLink Log tab.
Click the Data tab. In the lower pane, right-click the row with the name Drywall Screws 10lb, select Edit Row, and then change the quantity to 99.
Click Synchronize. The change made on the remote database has been synchronized to the consolidated database.
Click the Actions button and then select Open Interactive SQL on the consolidated database. The Interactive SQL window opens with a connection to the consolidated database.
Execute the following SQL statements and then close Interactive SQL:
update product set quantity = quantity + 1; commit;
Back in the Data tab in Sybase Central, click Actions » Refresh Data tab. You can see the updated rows in the consolidated database.
Click Synchronize. The remote database is updated with the new quantity values.
Close the Test window.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2013, SAP AG ou société affiliée SAP - SAP Sybase SQL Anywhere 16.0|