Configure Replication in SQL Server 2005
The easiest way to create a publication is to use the Publication Wizard in SQL Server.The wizard provides a graphical user interface that lets you select the Publisher, the publication type, and the articles to publish. It also lets you configure filtering for the publication.When you create a publication for SQL Server Compact Edition Subscribers by using thePublication Wizard, you must select the following options:
On the Publication Type page, select Merge publication.
In SQL Server 2005, on the Subscriber Type page, select SQL Server CompactEdition.By enabling Windows CE subscribers, character mode snapshots are automaticallyconfigured for the publication. In SQL Server 2005, Web synchronization is also enabled.If this is the first publication created for this server, the Publication Wizard prompts youto configure the default snapshot folder location. The snapshot folder holds the snapshotfiles that contain the schema and data for published tables. The IIS user must be able toread these snapshot files so that it can download the files to the smart device. Note: The snapshot folder default location is a local path in the installation folder for SQL Server. You must change this path to a shared folder so that the IIS user can accessthe snapshot from over the network.When you use the Publication Wizard to create a publication, you select the articles youwant to publish by selecting the check box next to each article. Because you have previously indicated in the Publication Wizard that this publication will have MicrosoftSQL Server 2005 Compact Edition (SQL Server Compact Edition) Subscribers, thePublication Wizard will configure the articles appropriately. When you select an article,you can add filtering. Both column and row filtering are configured at the same time inthe wizard. This lets you define and maintain subsets of data that can be published todifferent devices. You can use row filtering to publish a subset of rows in a publishedtable. For example, in a service organization, each service representative might have toreceive only the customer records for the accounts they service. You can use columnfiltering to publish a subset of columns in a published table. For example, you can use acolumn filter to eliminate large text or image columns that you might not want to publishto a smart device.Row-level and column-level tracking determines how data is transferred and howconflicts are detected during synchronization.Column-level tracking reduces the amount of information that must be sent to thePublisher during synchronization, but row-level tracking requires less tracking overhead because more storage is required to track the changes. Column-level tracking can alsoreduce the number of conflicts when different users are changing the same data. For example, suppose one change is made to the address column of a Publisher row, and a