Logo

Navigation
  • Home
  • Services
    • ERP Solutions
    • Implementation Solutions
    • Support and Maintenance Solutions
    • Custom Solutions
    • Upgrade Solutions
    • Training and Mentoring
    • Web Solutions
    • Production Support
    • Architecture Designing
    • Independent Validation and Testing Services
    • Infrastructure Management
  • Expertise
    • Microsoft Development Expertise
    • Mobile Development
    • SQL Server Database and BI
    • SAP BI, SAP Hana, SAP BO
    • Oracle and BI
    • Oracle RAC
  • Technical Training
    • Learn Data Management
      • Business Intelligence
      • Data Mining
      • Data Modeling
      • Data Warehousing
      • Disaster Recovery
    • Learn Concepts
      • Application Development
      • Client Server
      • Cloud Computing Tutorials
      • Cluster Computing
      • CRM Tutorial
      • EDI Tutorials
      • ERP Tutorials
      • NLP
      • OOPS
      • Concepts
      • SOA Tutorial
      • Supply Chain
      • Technology Trends
      • UML
      • Virtualization
      • Web 2.0
    • Learn Java
      • JavaScript Tutorial
      • JSP Tutorials
      • J2EE
    • Learn Microsoft
      • MSAS
      • ASP.NET
      • ASP.NET 2.0
      • C Sharp
      • MS Project Training
      • Silverlight
      • SQL Server 2005
      • VB.NET 2005
    • Learn Networking
      • Networking
      • Wireless
    • Learn Oracle
      • Oracle 10g
      • PL/SQL
      • Oracle 11g Tutorials
      • Oracle 9i
      • Oracle Apps
    • Learn Programming
      • Ajax Tutorial
      • C Language
      • C++ Tutorials
      • CSS Tutorial
      • CSS3 Tutorial
      • JavaScript Tutorial
      • jQuery Tutorial
      • MainFrame
      • PHP Tutorial
      • VBScript Tutorial
      • XML Tutorial
    • Learn Software Testing
      • Software Testing Types
      • SQA
      • Testing
  • Career Training
    • Career Improvement
      • Career Articles
      • Certification Articles
      • Conflict Management
      • Core Skills
      • Decision Making
      • Entrepreneurship
      • Goal Setting
      • Life Skills
      • Performance Development
      • Personal Excellence
      • Personality Development
      • Problem Solving
      • Relationship Management
      • Self Confidence
      • Self Supervision
      • Social Networking
      • Strategic Planning
      • Time Management
    • Education Help
      • Career Tracks
      • Essay Writing
      • Internship Tips
      • Online Education
      • Scholarships
      • Student Loans
    • Managerial Skills
      • Business Communication
      • Business Networking
      • Facilitator Skills
      • Managing Change
      • Marketing Management
      • Meeting Management
      • Process Management
      • Project Management
      • Project Management Life Cycle
      • Project Management Process
      • Project Risk Management
      • Relationship Management
      • Task Management
      • Team Building
      • Virtual Team Management
    • Essential Life Skills
      • Anger Management
      • Anxiety Management
      • Attitude Development
      • Coaching and Mentoring
      • Emotional Intelligence
      • Stress Management
      • Positive Thinking
    • Communication Skills
      • Conversation Skills
      • Cross Culture Competence
      • English Vocabulary
      • Listening Skills
      • Public Speaking Skills
      • Questioning Skills
    • Soft Skills
      • Assertive Skills
      • Influence Skills
      • Leadership Skills
      • Memory Skills
      • People Skills
      • Presentation Skills
    • Finding a Job
      • Etiquette Tips
      • Group Discussions
      • HR Interviews
      • Interview Notes
      • Job Search Tips
      • Resume Tips
      • Sample Resumes
 

SQL Server 2005 Replication Enhancements

By Exforsys | on January 11, 2006 |
SQL Server 2005

SQL Server 2005 Replication Enhancements

In this tutorial you will learn about Overview of Replication Enhancements, User Interface Enhancements, Merge replication concurrency Enhancements, Programming changes, The Replication Monitor, Performance and Scalability Features, Pre-computed partitions, Updates to unique keys, Transactional parallelism, Download and upload only articles, Reduced contention and Managing replication.

Overview of Replication Enhancements

The most striking aspects of the enhancements made to SQL Server 2005 replication services are that configuration wizards have been made simpler and shorter and performance and scalability have been improved.

User Interface Enhancements

The first of these is the wizard enhancements. These have been redesigned with fewer pages(40% less), simplification of pages, improved default values and auto detection and less branching. These wizards can be used to implement or generate scripts for later execution against a server instance.

New subscriptions wizards have been introduced. The Push Subscription Wizard and the Pull Subscription Wizard of the earlier versions have been merged into a single wizard tool called the New Subscription Wizard. This wizard includes an ability to simultaneously create multiple subscriptions with different properties for a publication. This greatly decreases the effort required for setting up replication for small deployments. All subscriptions can be generated by running the wizard once. Larger deployments can be managed by generating scripts for later execution.

Merge replication concurrency Enhancements

Concurrency issues occur when merge replication of a delivery fails halfway through a process. This may require all the tables to be updated or none should be updated. SQL Server 2005 introduces the concept of logical records that enable the DBA define relationships between merge table articles. This ensures that related rows are all delivered together and that concurrency issues do not occur.

Programming changes:

SQL Server 2005 introduces the Replication Management objects(RMO) to implement all the programming needs within the replicated system. Since the RMO is a managed application programming interface, it can be used in .NET applications without use of complex COM interoperability code. Though SQL DMO is still supported new projects should be designed using RMO.

The RMO has a .NET assembly library that can be used by developers to program replication tasks. It is implemented in a library called Microsoft.SqlServer.Rmo.dll. The object model can be used by developers to work with individual classes without traversing the entire object model. It also has the capability of caching objects while they are in use and it allows the garbage collector clear unused memory. This enhances scalability.

Other types of objects that can be replicated are .NET user defined types and .NET assemblies.

The Replication Monitor

The replication monitor tool is a new introduction in SQL Sever 2005. This tool lets users monitor replications on a server. It functions independent of the SQL Server Management Studio and allows delegation of monitoring tasks to non-administrators. Since it is an independent application it can function in the passive mode without impacting the server.

The Replication monitor helps identify performance issues before they attain criticality and endanger the stability of the applications. Acceptable performance thresholds for a publication can be defined. When the threshold is reached, alerts can be used to warn the user.

Information is displayed in the Replication monitor is updated at an interval of a minute by default. This information is executed as part of the Replication monitoring refresher for distribution job and the results are cached to reduce the number of queries and calculations when different pages are selected in the monitor. The Publisher settings can be configured in the dialog box of the Replication Monitor and the refresh rate is defined. More resources are used when the refresh rate is set at a high value.

The replication monitor helps, DBAs easily and quickly identify any articles that impact performance issues. The upload and download statistics provide fine granular performance data.

The replication monitor enables the tracking of latency of transactional replication. Real time system analysis can be performed using tracer tokens that store the time of committal of transactions.

Performance and Scalability Features

The goal of the replication in SQL Server 2005 was to service a large number of subscribers. A number of enhancements have been made to improve the performance and scalability capabilities of the product.

Pre-computed partitions

Earlier versions of SQL Server required that rows replicated to subscribers be evaluated at the start of the synchronization with the subscriber. This becomes a performance bottleneck which SQL Server 2005 tries to overcome by introducing precomputed partitions that evaluate partition member ship when changes are made to data. The data transfer process begins when synchronization starts.

Updates to unique keys

SQL Server 2005 replicates the changes to the unique keys as UPDATE statements instead of DELETE statements of SQL Server 2000. This results in improved performance.

Transactional parallelism

In transaction replication the rate of transaction transfer from the publisher to the distributor using the log agent is minimal but the rate of transfer to subscribers from the distributor left much to be desired in the earlier versions of the server. The reason for this poor performance was that transactions which in the publisher occurred in parallel from multiple clients were being transferred in serial from the distributor to the subscriber. In SQL Server 2000 this issue is solved by enabling the Independent Agent option of the publication to be used per publication per subscriber. In SQL Server 2005 this is enabled by default.

Download and upload only articles

In replication scenarios where subscribers only use a subset of the data and there is no requirement of merging the data, the change tracking metadata is not required to be transferred. The publication which meets this requirement is to be marked as download-only article and the performance of the application would vastly improve.

Reduced contention

Contention can be reduced on subscribers that are created for reporting purposes by using snapshot isolation levels.

Managing replication

Replication in SQL Server 2005 can be managed using the new and upgraded features. Subscribers can be initialized by using standard backup and restore procedures or by using any standard method of copying a database or by using dynamic snapshots for filtered merge replication subscriber. Subscription becomes immediately available when the subscription is created if these initializing methods are used.

If snapshot delivery is interrupted, the snapshot agent becomes active and automatically resumes the delivery.

Replication of DDL statements are automatic for ALTER TABLE, ALTER VIEW, ALTER PROCEDURE, ALTER FUNCITON and ALTER TRIGGER. This function can be disabled in SQL Server Management Studio by setting the Replicate Schema changes property in the Subscription options of the publication to False. The sp_changepublication stored procedure can be called when developing scripts using the replicate_ddl parameter to enable and disable replication of DDL statements.

Finally, Anonymous subscriptions can be created without being predefined by the publisher to reduce the management tasks associated with creating subscriptions for popular publications.

« « SQL Server 2005 – Mirror Server
SQL Server 2005 – Configuring Replication » »

Author Description

Avatar

Editorial Team at Exforsys is a team of IT Consulting and Training team led by Chandra Vennapoosa.

Free Training

RSSSubscribe 384 Followers
  • Popular
  • Recent
  • SQL Server Monitoring Tools – Server Profiler

    December 12, 2005 - 0 Comment
  • Using Notification Services in SQL Server 2005

    October 25, 2005 - 0 Comment
  • Maintain indexes in a SQL Server 2005 database

    December 20, 2005 - 0 Comment
  • SQL Server 2005 Architecture Overview

    November 23, 2005 - 0 Comment
  • SQL Server 2005 – Configuring Replication

    January 11, 2006 - 0 Comment
  • SQL Server 2005 – Using DDL Triggers

    December 12, 2005 - 0 Comment
  • Using XML in SQL Server 2005

    October 26, 2005 - 0 Comment
  • SQL Server 2005 – Tuning a Database

    December 24, 2005 - 0 Comment
  • SQL server 2005 Editions

    November 23, 2005 - 0 Comment
  • SQL Server 2005 – Using Event Notifications

    December 13, 2005 - 0 Comment
  • SQL Server 2005 – Configuring Replication

    January 11, 2006 - 0 Comment
  • SQL Server 2005 – Mirror Server

    January 11, 2006 - 0 Comment
  • SQL Server 2005 – Introduction to Data Availability

    January 1, 2006 - 0 Comment
  • SQL Server 2005 – Backing up a Database

    January 1, 2006 - 0 Comment
  • SQL Server 2005 – Using Database Snapshots

    December 26, 2005 - 0 Comment
  • SQL Server 2005 – Disaster Recovery

    December 26, 2005 - 0 Comment
  • SQL Server 2005 – Managing Certificates

    December 26, 2005 - 0 Comment
  • SQL Server 2005 – Managing Permissions

    December 26, 2005 - 0 Comment
  • Managing SQL Server 2005 Security

    December 24, 2005 - 0 Comment
  • SQL Server 2005 – Using the Database Tuning Advisor

    December 24, 2005 - 0 Comment

Exforsys e-Newsletter

ebook
 

Related Articles

  • SQL Server 2005 – Configuring Replication
  • SQL Server 2005 – Mirror Server
  • SQL Server 2005 – Introduction to Data Availability
  • SQL Server 2005 – Backing up a Database
  • SQL Server 2005 – Using Database Snapshots

Latest Articles

  • Project Management Techniques
  • Product Development Best Practices
  • Importance of Quality Data Management
  • How to Maximize Quality Assurance
  • Utilizing Effective Quality Assurance Strategies
  • Sitemap
  • Privacy Policy
  • DMCA
  • Trademark Information
  • Contact Us
© 2023. All Rights Reserved.IT Training and Consulting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.AcceptReject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT