module 9: sql server 2005 replication. overview overview of replication enhancements new types of...

18
Module 9: SQL Server 2005 Replication

Upload: eric-richard

Post on 23-Dec-2015

223 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Module 9: SQL Server 2005

Replication

Page 2: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Overview

Overview of Replication Enhancements

New Types of Replication

Configuring Replication

Page 3: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Lesson: Overview of Replication Enhancements

User Interface Enhancements

Replication Management

Performance and Scalability

Replication Monitor

Other Enhancements

Page 4: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

User Interface Enhancements

Replication wizards

40% fewer pages

Improved default values and auto-detection

Less branchingNew Subscription Wizard

Replaces the Push Subscription Wizard and Pull Subscription Wizard

Allows you to define multiple subscriptions with different properties at the same time

Page 5: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Replication Management

Initializing a subscriber

Backup and restore

Copying a database

Dynamic snapshots

Resuming snapshot transfers

Replicating DDL statements

Allowing anonymous subscriptions for all publications

Page 6: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Performance and Scalability

Precomputed partitions

Updates to unique keys

Transactional parallelism — independent agent option used by default

Download only articles — to reduce change tracking metadata

Reduced contention on reporting subscribers

Use snapshot isolation level

Use snapshots

Page 7: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Replication Monitor

Independent from SQL Server Management Studio

Passive monitoring

Define acceptable performance figures

Minimize monitoring impact

Merge replication

Article level statistics

Upload and download statistics

Transactional replication — real-time monitoring with tracer tokens

Page 8: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Other Enhancements

Merge replication concurrency enhancements — guaranteed delivery of logical records

Programming changes — release of RMO

Replication of more types of objects

.NET UDTs

Assemblies

Page 9: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Lesson: New Types of Replication

Heterogeneous Replication

Peer-to-Peer Transactional Replication

HTTP Replication

Page 10: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Heterogeneous Replication

Use Oracle v8 and later databases as the publisher in a replication system

Snapshot replication — no impact on Oracle database

Transactional replication

Triggers and tracking tables added to Oracle database

Log Reader Agent transfers changes to SQL Server Distributor and Distribution Agent transfers changes to subscribers

Potential issues because of:

Differences between SQL Server and Oracle

Use of Oracle tools

Page 11: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Log Reader Agent

DistributionAgent

New York

Peer-to-Peer Transactional Replication

Log Reader Agent

DistributionAgent

Sydney

Log Reader Agent

DistributionAgent

London

Log Reader Agent

DistributionAgent

New York

Page 12: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

HTTP Replication

Subscriber Firewall IIS Publisher

https://Repl.AdventureWorks.com

XML over HTTP/HTTPS Binary over TCP/IP

Page 13: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Lesson: Configuring Replication

How to Configure Replication Using SQL Server Management Studio

How to Configure Replication Using RMO

Page 14: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

How to Configure Replication Using SQL Server Management Studio

Creating a publication — New Publication Wizard

Creating a subscription — New Subscription Wizard

Synchronizing a subscription

Page 15: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Practice: Creating a Publication Using SQL Server Management Studio

In this practice, you will see how to:

Start the New Publication Wizard

Configure a publication

Page 16: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

How to Configure Replication Using RMO

Imports Microsoft.SqlServer.Management.CommonImports Microsoft.SqlServer.ReplicationImports Microsoft.SqlServer.Management.CommonImports Microsoft.SqlServer.ReplicationDim subCon As ServerConnectionsubCon = New ServerConnection("MySubscriber")subCon.Connect()

Dim subCon As ServerConnectionsubCon = New ServerConnection("MySubscriber")subCon.Connect()

11

33

44

22

Reference the SMO and RMO libraries

Microsoft.SqlServer.ConnectionInfo

Microsoft.SqlServer.Replication

Import the SMO and RMO namespaces

Connect to the replications server(s)

Perform replication tasks

Create publications

Create subscriptions

Page 17: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Practice: Creating a Subscription Using RMO

In this practice, you will see how to create a subscription using RMO

Page 18: Module 9: SQL Server 2005 Replication. Overview Overview of Replication Enhancements New Types of Replication Configuring Replication

Course Evaluation