You are developing an occasionally connected smart client. The application uses Sync Services to synchronize a local Microsoft SQL Server Compact 3.5 database table periodically with the corresponding table in a corporate database. The application uses a strongly typed TableAdapter to populate a DataSet from the local table. This DataSet is displayed in a read-only DataGridView. Your application includes code to detect if the application has returned online and requires synchronization. When this condition is detected, you must synchronize data and ensure that the displayed data is up to date.

What should you do?

 Posted by Rajkatie on 10/31/2012 | Category: ADO.NET Interview questions | Views: 3896 | Points: 40
Select from following answers:
  1. Call the SyncAgent.Synchronize method and Use the TableAdapter to query the local database table and refresh the DataSet.
  2. Use returned SyncStatistics to update the DataSet.
  3. Use the TableAdapter to query the corporate database table and refresh the DataSet.
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response