Tip

Troubleshooting replications

Merge replication is when you allow multiple sites to make changes or publish into a database, track changes, and then merge any changes into a target database. It is used to allow each site to be able to work independently without a full time connection. Snapshot replication, on the other hand, creates an image of the data in a database at a point in time and then replicates the snapshot to subscribers. A snapshot, once the original data image is established, is differential, and essentially refreshes any tables in its definition. Snapshots are a fast means of keeping data sets synchronized. People use snapshot replication when the latency involving table refresh is within allowable limits of your application.

Both snapshot and merge replications can be monitored using the Replication Monitor tool. That tool posts an error message or alert when a replication fails, as well as providing information about which processes have succeeded and which have failed. Thus the Replication Monitor is a good place to go to troubleshoot your replications. This tool allows you to set up agents that generate alerts, and specify where the alert is to be sent. To set up an alert, right click on the Agent and in the Agent Properties dialog box go to the Notification tab and fill in the behavior you need.

You'll find that most often replications fail because either connectivity was lost or because the process didn't have adequate security privileges to complete the replication.

    Requires Free Membership to View

Both of these problems, once detected, can be detected using a remote stored procedure in a subscriber database. Replications use the security settings of your SQL Server agent. If you have a security issue, then check that you have sufficient privileges to access the working directory on the distribution server, and that you can create new data files and schema. Also, for any snapshot replication, check that you can properly access the databases that are part of your snapshot replication definition.

About the author

Barrie Sosinsky is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


This was first published in March 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.