For synchronization to take place, the MobiLink server must be running. If you have shut down your MobiLink server, you need to restart it. See Lesson 2: Logging in and populating the UltraLite remote database.
The synchronization process for the sample application removes approved orders from your database.
You can use Interactive SQL or Sybase Central to connect to the consolidated database and confirm that your changes were synchronized.
To synchronize your data, from the File menu click Synchronize Database.
Confirm that synchronization took place.
At the remote database, you can confirm that all required transactions occurred by checking that the order for Awnings R Us is now deleted. Perform this action by browsing the orders to confirm the absence of this entry.
At the consolidated database, you can also confirm that all required actions occurred by checking data in the consolidated database.
Click Start » Programs » SQL Anywhere 12 » Administration Tools » Sybase Central.
Click Connections » Connect With SQL Anywhere 12.
In the Action drop-down, click Connect with an ODBC Data Source.
Click ODBC Data Source Name.
Click Browse and click SQL Anywhere 12 CustDB.
Click OK.
Click Connect.
Double-click Tables.
Double-click ULOrder.
Click the Data tab and verify that order 5100 is approved, order 5101 is denied, and order 5102 is deleted.
Connect to the consolidated database from Interactive SQL.
Click Start » Programs » SQL Anywhere 12 » Administration Tools » Interactive SQL.
In the Action drop-down, click Connect with an ODBC Data Source.
Click ODBC Data Source Name and click SQL Anywhere 12 CustDB.
To confirm that the approval and denial have been synchronized, execute the following statement:
SELECT order_id, status FROM ULOrder WHERE status IS NOT NULL; |
The results show that order 5100 is approved, and 5101 is denied.
The deleted order has an order_id of 5102. The following query returns no rows, demonstrating that the order has been removed from the system.
SELECT * FROM ULOrder WHERE order_id = 5102; |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |