Home > Articles > Databases > SQL Server

Monitoring and Troubleshooting Replication Using SQL Server 2005

Baya Dewald
  • PrintPrint
  • Share ThisShare This
  • DiscussDiscuss
Close WindowBaya Dewald

Baya Dewald

Learn more…

Recommended Practices for Analysis Services 2005/2008 Design
Feb 8, 2010
SQL Server Analysis Services 2005/2008 Administration
Jan 22, 2010
SQL Server 2005 Transactional Replication Agents
Oct 20, 2006
Replicating Code Modules with SQL Server 2005
Sep 15, 2006
Monitoring and Troubleshooting Replication Using SQL Server 2005
Sep 1, 2006
Maintaining Transactional Replication with SQL Server 2005
Aug 18, 2006
Setting Up Transactional Replication with SQL Server 2005
Aug 11, 2006
Monitoring and Tuning SQL Server with Profiler
Mar 3, 2006
Tips and Tricks Within Microsoft Analysis Services
Feb 24, 2006
Case Study of Building a Data Warehouse with Analysis Services (Part Two)
Feb 17, 2006
Case Study of Building a Data Warehouse with Analysis Services (Part One)
Feb 10, 2006
Developers vs. DBAs: Keys to Successful Cohabitation
Oct 6, 2005
SQL Server Transactional Replication Agents
Oct 22, 2004
Replicating Code Modules in SQL Server
Oct 15, 2004
Working with Analysis Services Cubes in SQL Server
Oct 1, 2004
Dimensional Databases: Building A Data Warehouse
Sep 17, 2004
SQL Server Log Shipping
Aug 20, 2004
Maintaining Transactional Replication
Apr 30, 2004
Monitoring and Troubleshooting Transactional Replication
Apr 23, 2004
Setting Up Transactional Replication with SQL Server
Mar 26, 2004
Introduction to Database Replication
Mar 5, 2004
SQL Server: Advantages and Drawbacks of User-Defined Functions
May 16, 2003
SQL Server User-Defined Functions (UDFs)
May 2, 2003
SQL Server String, Cursor, Security and Rowset Functions
Apr 18, 2003
Date, Math and Text Functions in SQL Server 2000
Apr 4, 2003
SQL Server System-Related Functions
Mar 14, 2003
Enhancing SQL Server Functionality with Functions
Feb 21, 2003
Optimizing Transact-SQL Code
Aug 9, 2002
SQL Server: Optimizing Database Performance Through Indexes
Aug 2, 2002
SQL Server: Tuning Database Design
Jul 26, 2002
SQL Server Tuning: Database Maintenance
Jul 19, 2002
Application Performance Tuning
Jul 12, 2002
Options Affecting SQL Server Locking Behavior
May 31, 2002
SQL Server: Blocking Problems
May 24, 2002
SQL Server: Details of Locking
May 17, 2002
SQL Server: Transaction and Locking Architecture
May 10, 2002
SQL Server and OPENXML
May 1, 2002
DTS Tips and Tricks
Mar 8, 2002
The DTS Object Model
Mar 1, 2002
Introduction to Data Transformation Services (DTS)
Feb 22, 2002
Normalizing Name Data in SQL Server
Jan 25, 2002
String Manipulations with SQL Server 2000
Jan 25, 2002
The EXPLICIT Mode of FOR XML
Jan 18, 2002
XML Support in Transact-SQL
Jan 18, 2002
Gathering Data for a Data Warehouse
Jan 11, 2002
Steps Involved in Building a Data Warehouse
Jan 11, 2002
Populating a Data Warehouse with SQL Server 2000
Nov 9, 2001
SQL Server: Determining Whether a Date is a Business Day
Nov 9, 2001

Sorry, this author hasn't posted any blogs.

Administrator's Guide to SQL Server 2005

Like this article? We recommend
Administrator's Guide to SQL Server 2005

Replication Monitor is a fine monitoring and troubleshooting tool included with SQL Server 2005. In this hands-on article, Baya Pavliashvili discusses ways in which the replication monitoring tools have improved significantly with SQL Server 2005, as compared with previous releases.

The first two articles in this series taught you how to set up and maintain transactional replication with SQL Server 2005. The latest release of SQL Server introduced numerous enhancements to replication, and monitoring tools have changed quite a bit. This article shows you how to monitor and troubleshoot replication issues.

Meet Replication Monitor 2005

Replication monitoring has the following goals:

  • Ensure that replication is running and transactions are being delivered to subscribers.
  • Verify that replication performance is acceptable. This entails delivering transactions within a reasonable time frame so that data on the subscriber(s) is consistent with data on the publisher.
  • Identify and troubleshoot any errors or replication performance issues.

Microsoft did an excellent job of addressing these monitoring needs with SQL Server 2005; the new suite of tools enables you to perform all this functionality with relative ease. The new toolset does take some time to get used to, however.

You can invoke Replication Monitor by right-clicking the replication folder (or local publications’ folder) within SQL Server Management Studio (SSMS) and choosing Launch Replication Monitor. In previous releases of software, Replication Monitor ran in the same window as Enterprise Manager; with SQL Server 2005, Replication Monitor runs in a separate window. I have to warn you that Replication Monitor window sometimes takes awhile to activate, particularly on slow servers with much processing activity. Being an essential and excellent tool for troubleshooting replication, I hope this minor issue with Replication Monitor will be corrected soon. The good news is that replication improvements introduced with SQL Server 2005 far outweigh the few problems you might encounter on slower servers.

Replication Monitor has two panes: the left pane shows you the list of publishers and any associated publications; the right pane displays the status of each subscription to the selected server’s publications. If you don’t see a publisher that you want to monitor, you can right-click the My Publishers node and choose Add. Doing so will open a dialog box that enables you to create a new monitoring group, and add or remove SQL Server or Oracle publishers (as shown in the following figure).

Replication Monitor allows overseeing of publications and subscriptions running previous releases of SQL Server, but new features will be available only for instances running SQL Server 2005.

The default tab of the Replication Monitor tells you whether any subscriptions are currently synchronizing, shows their current average performance, and shows the current worst performance. You’ll learn about replication performance monitoring later in this article; for now, let’s briefly review the initial screen displaying all publications associated with the current publisher (see the following figure).

If you click a particular publication in the left pane, the right pane will show data specific to that publication; by default, data related to all publications are displayed. The Subscription Watch List tab in the right pane will be your best friend if you have dozens of subscriptions—this tab enables you to filter the list of all subscriptions to only those you’re interested in. This tab has two drop-down boxes that help you focus on relevant subscriptions. The first drop-down box enables you to pick the subscription type: snapshot, transactional, or merge; the second drop-down box is performance-related and allows the following options:

  • Show 25 worst-performing subscriptions
  • Show 50 worst-performing subscriptions
  • Show errors and warnings only
  • Show errors only
  • Show warnings only
  • Show subscriptions running (not stopped due to error)
  • Show subscriptions not running

The Common Jobs tab allows starting, stopping, and refreshing the replication jobs that apply to all subscriptions, as shown in the next figure.

You can right-click any of these jobs to view the job properties, start the job, or stop the job as needed. You can also manage replication jobs (along with other types of jobs) from the Job Activity monitor shown in the next figure. Having a user interface specific to replication common jobs does come in handy if you have hundreds of other jobs on your server.

Notice that Job Activity monitor has a filtering mechanism that can help you reduce the number of jobs displayed; for example, the following setting shows only those jobs that contain the word distribution in their name.

 

  • Share ThisShare This
  • Your Account

Discussions

SQL Server 2005 Replication problem
Posted Nov 17, 2008 08:45 AM by beechwood67
0 Replies

Make a New Comment

You must log in in order to post a comment.

Related Resources

There are currently no related podcasts. Please check back later.

Great password information at a small price
By John Traenkenschuh on June 13, 2009 No Comments

Where can cash-strapped security pro's get great information on security basics??

Steven HainesOracle Buys Sun of $7.4B
By Steven Haines on April 20, 2009 No Comments

In a stunning turn of events, Oracle steps in and buys Sun amist the breakdown of IBM's attempt to acquire Sun.

Buck WoodyIf it's Free it's for Me
By Buck Woody on January 26, 2009 No Comments

Sign me up for anything free these days. I just ran across a book that promises to help you build a web site for free...

See All Related Blogs

Informit Network