To implement Microsoft Jet database engine replication, you need to convert
a Microsoft Access database into a special, replicable format. There are
three ways to make a database replicable:
- You can drag the database file (.mdb) to the Briefcase in Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows NT 4.0, or Microsoft Windows 2000.
- You can use the Create Replica command in Microsoft Access (point to Replication on the Tools menu, and then click Create Replica).
- You can use the Replication Manager available with Microsoft Office 2000 Developers.
When you convert a database to a replicable format, you are asked to make
a backup copy of the database. You should click
Yes to create the backup copy, because once the database is replicable, you may not be able to return the database to its non-replicated state.
The replication conversion process adds several components, modifies a few
properties for existing objects, and adds new properties to a database.
Specifically, replication makes the following changes to a database:
- The s_GUID field stores a globally unique identifier for each record. This is added to the table.
- The s_Lineage field stores binary information about the history of changes to the record. This is added to the table.
- The s_Generation field stores information about groups of changes. If a table has Memo or OLE data type fields, multiple s_Generation fields are added, one for each Memo or OLE field. This is added to the table.
- The s_ColLineage is used to manage column-level tracking for a table. If the table is using row-level tracking, this field is not added. This is added to the table.
- Several System tables are added to the database to record the history of exchanges between replicas, the location of other replicas in the replica set, and other information required by the Microsoft Jet database engine. This is added to the database container.
- The NewValues property of AutoNumber fields will change from Increment to Random. This prevents any new records from receiving the same value as other new records in different replicas. This change is made at the table level.
- The Properties collection in Data Access Objects (DAO) has five additional properties: DesignMasterID, KeepLocal, Replicable, ReplicaID, and ReplicationConflictFunction.
- The Replicable property for each object in the database is set to True.