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 – Configuring Replication

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

SQL Server 2005 – Configuring Replication

In this tutorial you will learn about SQL Server 2005 – Configuring Replication – New Types of Replication, Peer to Peer Transactional Replication, HTTP Replication, Configuring Replication Configuring Replication Using RMO, Referencing the RMO and SMO libraries and Creating a Subscription Using RMO.

New Types of Replication

New types of replications have been introduced in SQL Server 2005. The first of these is the Heterogeneous Replication which allows the publication of data from heterogeneous subscribers such as Oracle, DB2 using relevant ODBC drive and OLE DB provider. In SQL Server 2005 allows configuration of the snapshot and transaction replication without requiring additional software. The second type is the Snapshot replication from an oracle publisher. This requires the publisher to generate a set of data and the transfer of such data to the subscriber. When oracle is used the SQL Server connects to the Oracle database and retrieves the data without needing a change tracking or insertion of information into the Oracle database. Transactional replication requires that each transaction made to the data at the publisher is tracked, so that it can be replicated to subscribers. While configuring an Oracle publisher from the SQL Server triggers are added to replicate tables created in Oracle for each published table.

Peer to Peer Transactional Replication

The concept of Peer to peer transactional replication is used to increase the server scale out capabilities. All nodes within the system are treated as peers and can be updated simultaneously. Each node has its own Log Reader Agent and Distribution Agent. Therefore, a node can be taken offline for scheduled maintenance without impact on performance and put online again and logs from other nodes can be applied to it.

HTTP Replication

SQL Server 2005 introduces Web synchronization for merge replication and provides the user with the ability to replicate directly over an HTTP or HTTPS connection. This solution will be appreciated by mobile users. The Internet Information Services are used to transfer data between the publisher and the subscriber and subscribers connect to a URL on the web server using authentication parameters configured in the subscription. The messages sent are packaged as XML and encrypted using Secure Socket Layer for security. The IIS communicates in a binary format with the publisher over a TCP/IP network connection. Since HTTP replication is merge replication technology, updates can be made both to rows at both the subscriber and publisher ends. Since the subscriber is mobile, the merge agent runs on the subscriber and configures only pull subscriptions. The synchronization can be configured to run continuously, on schedule or on demand. Subscription is initialized at the subscriber end by a snapshot generated at the publisher and transferred to the subscriber. In Web synchronization the snapshot is delivered as an attachment over HTTP.

Configuring Replication

1. In Object Explorer, expand the Replication folder.
2. Right-click Publications, and then click New Publication.

3. On the New Publication Wizard page, click Next.

4. On the Distributor page, click Next.

5. On the Snapshot Folder page, click Next.

6. On the Publication Database page, click Exforsys, and then click Next.

7. On the Publication Type page, click Transactional publication, and then click Next.

8. On the Articles page, expand Tables, select EmployeeMaster(EmployeeId), and then click Next.

9. On the Article Issues page, click Next.

10. On the Filter Table Rows page, click Next.

11. On the Snapshot Agent page, click Next.
12. On the Agent Security page, click Security Settings

13. In the Process account box, type SQL2005PC\SQLServer. In the Password and Confirm Password boxes, type P@ssw0rd, and then click OK.

14. On the Agent Security page, click Next.
15. On the Wizard Actions page, click Next.

16. On the Complete the Wizard page, enter a Publication name of AWContacts, and then click Finish.

17. When the publication is successfully created, click Close.

Configuring Replication Using RMO

RMO can be used to create managed .NET applications that help in configuring and maintaining replication in SQL Server 2005. RMO is implemented as a class within a .NET assembly called Microsoft.sqlserver.rmo.dll. This assembly contains the Microsoft SqlServer.Replication namespace.

Referencing the RMO and SMO libraries

RMO and SMO libraries can be referenced from the project created in Visual Studio.NET.

1. On the Project menu, click Add Reference.

2. In the Add Reference dialog box, click Microsoft.SqlServer.ConnectionInfo, hold the CTRL key down, and click Microsoft.SqlServer.Replication .NET Programming Interface. Click OK.

 

Creating a Subscription Using RMO

Replication can be configured using RMO. The typical tasks that will have to be performed are importing the SMO and RMO namespaces, connecting to the subscriber and publisher servers, listing existing subscribers for a publication and creating a new subscription for publication.

In this module we have examined the enhancements made to replication services and the different types of replications that have been introduced in SQL Server 2005. We have also briefly examined how replication can be configured using the options available in the SQL Server 2005 version.

« « SQL Server 2005 Replication Enhancements
Integration Testing: Why? What? & How? » »

Author Description

Avatar

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

Free Training

RSSSubscribe 394 Followers
  • Popular
  • Recent
  • SQL Server 2005 Installation

    November 23, 2005 - 0 Comment
  • Getting started with SQL Server 2005

    August 9, 2005 - 0 Comment
  • Using SQL Sever Management Studio – Part 1

    December 15, 2005 - 0 Comment
  • Native HTTP Support in SQL Server 2005

    November 1, 2005 - 0 Comment
  • Managing SQL Server 2005 Security

    December 24, 2005 - 0 Comment
  • Planning to Install SQL Server 2005

    November 29, 2005 - 0 Comment
  • Overview of SQL Server 2005 for the Database Developer

    September 8, 2005 - 0 Comment
  • Using SQL Sever Management Studio – Part 2

    December 15, 2005 - 0 Comment
  • NET CLR in SQL Server 2005

    November 1, 2005 - 0 Comment
  • SQL Server 2005 – Managing Permissions

    December 26, 2005 - 0 Comment
  • SQL Server 2005 Replication Enhancements

    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 Replication Enhancements
  • 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