Microsoft KB Archive/282316

= ACC2002: Data in Replica Sets Does Not Match as Expected After Synchronization =

Article ID: 282316

Article Last Modified on 11/14/2007

-

APPLIES TO


 * Microsoft Access 2002 Standard Edition

-



This article was previously published under Q282316



Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies only to a Microsoft Access database (.mdb).



SYMPTOMS
After you have synchronized one member of a replica set with another, some of the data in the two databases may not match as expected.



CAUSE
This behavior can occur if the data in a field is being edited while changes to the same field in the same record are being communicated by synchronization.



RESOLUTION
To prevent this issue from occurring, make sure that no one is editing records in a table when you run synchronization.

Another way to prevent this behavior is to upsize the database from a Microsoft Access database (.mdb) to Microsoft SQL Server or a Microsoft Access project (.adp), and then use SQL Server's replication functionality.

For more information about upsizing your database, click Microsoft Access Help on the Help menu, type upsizing in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

For additional information about upsizing your database, click the article number below to view the article in the Microsoft Knowledge Base:

294407 ACC2002: &quot;Access 2002 Upsizing Tools&quot; White Paper Available in Download Center

For additional information about replication in Microsoft SQL Server 2000, browse to the following Microsoft Web site:

http://technet.microsoft.com/en-us/sqlserver/bb331756.aspx

To resolve this issue when it occurs, make note of any write conflicts you get when synchronizing. After synchronization is complete, check the records that had the write conflict. If the data is not correct, modify the record, and then synchronize again. This will send the changes and cause a conflict that will have to be resolved.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce the Problem

 * 1) Start Access, and then click Blank Database on the New File task pane.
 * 2) In the File name box, type Design Master, and then click Create.
 * 3) On the Tools menu, click Options, and then click to clear the Open databases using record-level locking check box on the Advanced tab.
 * 4) Quit and reopen Access, and then reopen the Design Master database.
 * 5) Double-click Create table by entering data.
 * 6) In the first record, type Field One under Field1, and then click Save on the toolbar.
 * 7) Click OK in the Save As dialog box, click Yes to have Access create a primary key, and then close the table.
 * 8) On the Tools menu, point to Replication, click Create Replica, and then click Yes when you see the &quot;This database must be closed before you can create a replica&quot; message.
 * 9) Click No to skip the creation of a backup copy of the database, click OK to create a replica named &quot;Replica of Design Master,&quot; and then click OK.
 * 10) In the Design Master Database window, double-click Table1, change &quot;Field One&quot; to &quot;Field 1,&quot; and then close the table.
 * 11) Start a second instance of Access, and then open the database Replica of Design Master.
 * 12) Double-click Table1, change &quot;Field One&quot; to &quot;First Field,&quot; but do not save the record and do not close the table.
 * 13) On the taskbar, click Design Master: Design Master.
 * 14) On the Tools menu, point to Replication, and then click Synchronize Now.
 * 15) In the Synchronize Database 'Design Master' dialog box, click OK, and then click Yes to close the database before synchronization.
 * 16) Click OK when synchronization has been completed successfully.
 * 17) On the taskbar, click Table1: Table (Replicated).
 * 18) Close the table, and then click Save Record when you see the &quot;Write Conflict&quot; message.
 * 19) On the taskbar, click Design Master: Design Master.
 * 20) On the Tools menu, point to Replication, and then click Synchronize Now.
 * 21) In the Synchronize Database 'Design Master' dialog box, click OK, and then click Yes to close the database before synchronization.
 * 22) Click OK when synchronization has been completed successfully.
 * 23) Compare the data in Field1 in Design Master and Replica of Design Master.

Notice that the records have not been synchronized.

