module 6: implementing sql server replication in an enterprise environment
TRANSCRIPT
![Page 1: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/1.jpg)
Module 6: Implementing SQL Server Replication
in an Enterprise Environment
![Page 2: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/2.jpg)
Overview
Planning for Disaster Recovery in a Replicated Environment
Upgrading and Applying Service Packs in a Replicated Environment
Understanding Enterprise Options in a Replicated Environment
Understanding Replication with Heterogeneous Database Systems
![Page 3: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/3.jpg)
Lesson: Planning for Disaster Recovery in a Replicated Environment
How to Back Up the Publisher
How to Back Up the Publisher and Distributor
How to Back Up the Publisher, Distributor, and Subscriber
Backing Up Snapshot Replication
Backing Up and Restoring Transactional Replication
Using sync with backup
Forcing the Distributor to retain content until the Subscriber has backed up
Recovery Strategies for Merge Replication
Disaster Recovery Best Practices
![Page 4: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/4.jpg)
How to Back Up the Publisher
BackupBackupBackupBackup
mastermaster msdbmsdb
Published Published database database
![Page 5: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/5.jpg)
How to Back Up the Publisher and Distributor
BackupBackupBackupBackup
BackupBackupBackupBackup
mastermaster msdbmsdb
Published Published database database
![Page 6: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/6.jpg)
BackupBackupBackupBackup
How to Back Up the Publisher, Distributor, and Subscriber
BackupBackupBackupBackup
BackupBackupBackupBackup
mastermaster msdbmsdb
Published Published databasedatabase
mastermaster msdbmsdb
Published Published database database
![Page 7: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/7.jpg)
Backing Up Snapshot Replication
REPLDATAREPLDATA
.sch
.dri
.bcp
DatabasesDatabases
Use Windows NT backup for snapshot folder
Use Windows NT backup for snapshot folder
Use SQL Server backupUse SQL Server backup
![Page 8: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/8.jpg)
Backing Up and Restoring Transactional Replication Using the sync with backup Option
Using sync with backup option
Ensures that Log Reader Agent will not send transactions to the distribution database
Allows restoration of databases
Restoring the publication database without using sync with backup option
Avoids increase in latency
![Page 9: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/9.jpg)
Forcing the Distributor to Retain Content Until the Subscriber Has Backed Up
![Page 10: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/10.jpg)
Recovery Strategies for Merge Replication
Restore Publisher and resynchronize with each Subscriber
Restore Publisher and Distributor and resynchronize with each Subscriber
Restore Distributor only
Drop and recreate subscriptions
Restore Subscriber database and resynchronize with each Publisher
![Page 11: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/11.jpg)
Disaster Recovery Best Practices
Keep a script for replication
Link recovery to validation
Use reinitialization cautiously
Back up concurrently
Restore databases to their original server
![Page 12: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/12.jpg)
Lesson: Upgrading and Applying Service Packs in a Replicated Environment
Configuring Replication with Multiple SQL Server Versions
Upgrading a Replicated System
Applying Service Packs to SQL Server 2000 Replicated Servers
![Page 13: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/13.jpg)
Merge Replication
Snapshot or Transactional Replication
Configuring Replication with Multiple SQL Server Versions
RoleRoleRoleRole Combination 1Combination 1Combination 1Combination 1
PublisherPublisher SQL Server 6.5SQL Server 6.5
DistributorDistributor SQL Server 6.5 or 7.0SQL Server 6.5 or 7.0
SubscriberSubscriber SQL Server 6.x - 2000SQL Server 6.x - 2000
Combination 2Combination 2Combination 2Combination 2
SQL Server 7.0SQL Server 7.0
SQL Server 7.0 or 2000SQL Server 7.0 or 2000
SQL Server 6.x - 2000SQL Server 6.x - 2000
Combination 3Combination 3Combination 3Combination 3
SQL Server 2000SQL Server 2000
SQL Server 2000SQL Server 2000
SQL Server 6.x - 2000SQL Server 6.x - 2000
RoleRoleRoleRole Combination 1Combination 1Combination 1Combination 1
PublisherPublisher SQL Server 7.0SQL Server 7.0
DistributorDistributor SQL Server 2000SQL Server 2000
SubscriberSubscriber SQL Server 7.0SQL Server 7.0
Combination 2Combination 2Combination 2Combination 2
SQL Server 2000SQL Server 2000
SQL Server 2000SQL Server 2000
SQL Server 7.0SQL Server 7.0
![Page 14: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/14.jpg)
Upgrading a Replicated System
Publisher Distributor Subscriber
Data FlowData FlowData FlowData Flow Data FlowData FlowData FlowData Flow
11112222 3333
11 3322
![Page 15: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/15.jpg)
Applying Service Packs to SQL Server 2000 Replicated Servers
Running in a mixed environment
You can replicate between a SQL Server with a service pack installed and a SQL Server without that service pack installed
Restoring after service pack upgrade
After applying a service pack, back up the log or full database
![Page 16: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/16.jpg)
Lesson: Understanding Enterprise Options in a Replicated Environment
Choosing a High Availability Solution
Subscribing from the Internet
Replicating over a Dial-up Networking Connection
Replicating with Microsoft Pocket PC
![Page 17: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/17.jpg)
Choosing a High Availability Solution
Standby features
Failover qualities
Metadata support
Transactional consistency and current transactions
Performance impact
![Page 18: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/18.jpg)
Replicating with Virtual Private Networks
(VPNs)
Replicating through ISA Server
Subscribing from the Internet
InternetInternetSecureConnection
SecureConnection
ISA Server
VPN
![Page 19: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/19.jpg)
Replicating Over a Dial-up Networking Connection
Configuring replication
Creating a scheduled job
![Page 20: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/20.jpg)
Replicating with Microsoft Pocket PC
Microsoft SQL Server 2000 Windows CE Edition
Replicating with a Microsoft Pocket PC Subscriber
Row-level tracking
Using SQL Server CE in a programming environment
Subscribing to a publication through an application
The role of Microsoft Internet Information Services in SQL Server CE applications
![Page 21: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/21.jpg)
Lesson: Understanding Replication with Heterogeneous Database Systems
Publishing to Heterogeneous Subscribers
Replicating with Microsoft Access Subscribers
Replicating with Oracle Subscribers
Replicating with IBM DB2 Subscribers
Publishing from Heterogeneous Sources
![Page 22: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/22.jpg)
Publishing to Heterogeneous Subscribers
OracleOracle
IBM DB2IBM DB2
SQL ServerSQL Server
MicrosoftAccess
MicrosoftAccess
SQL ServerSQL Server
![Page 23: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/23.jpg)
Replicating with Microsoft Access Subscribers
SQL Server 2000 Desktop Engine
Based on SQL 2000 technology
Most Access projects can run without revision
Microsoft Jet
Does not support case-sensitive sort order
Push and anonymous pull subscriptions
Supports rowcount validation only
Uses reserved column names
![Page 24: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/24.jpg)
Replicating with Oracle Subscribers
Oracle subscription support
SQL Server has ODBC driver and OLE DB provider (Intel)
Must install Oracle’s SQL*Net driver on Publisher and Distributor
Replication restrictions
Table names cannot have spaces date data type maps to char(4)
Only one column of text or image data (long raw) SQL ranges for float and real differ from Oracle
![Page 25: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/25.jpg)
Replicating with IBM DB2 Subscribers
DB2/AS400
OLE DB provider and ODBC driver are included with Microsoft Host Integration Server 2000
SQL Server Books Online has data mapping table
DB2/MVS
SQL Server Books Online has data mapping table
Other DB2 Systems
May require third-party ODBC drivers or OLE DB providers
![Page 26: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/26.jpg)
Publishing from Heterogeneous Sources
Build applications with:
SQL Distributed Management Objects
Replication Distributor Interface
Third-party tools
![Page 27: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/27.jpg)
Review
Planning for Disaster Recovery in a Replicated Environment
Upgrading and Applying Service Packs in a Replicated Environment
Understanding Enterprise Options in a Replicated Environment
Understanding Replication with Heterogeneous Database Systems
![Page 28: Module 6: Implementing SQL Server Replication in an Enterprise Environment](https://reader030.vdocuments.site/reader030/viewer/2022032612/56649eef5503460f94bff7e5/html5/thumbnails/28.jpg)
Course Evaluation