Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Understanding Data Replication
  4. Sources - Preparation and Replication Considerations
  5. Targets - Preparation and Replication Considerations
  6. Starting the Server Manager
  7. Getting Started with the Data Replication Console
  8. Defining and Managing Server Manager Main Servers and Subservers
  9. Creating and Managing User Accounts
  10. Creating and Managing Connections
  11. Creating Replication Configurations
  12. Materializing Targets with InitialSync
  13. Scheduling and Running Replication Tasks
  14. Implementing Advanced Replication Topologies
  15. Monitoring Data Replication
  16. Managing Replication Configurations
  17. Handling Replication Environment Changes and Failures
  18. Troubleshooting
  19. Data Replication Files and Subdirectories
  20. Data Replication Runtime Parameters
  21. Command Line Parameters for Data Replication Components
  22. Updating Configurations in the Replication Configuration CLI
  23. DDL Statements for Manually Creating Recovery Tables
  24. Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Glossary

Adding and Scheduling a Microsoft SQL Server Backup Task

You can optionally add and schedule a Microsoft SQL Server Backup task to back up Microsoft SQL Server logs in native SQL Server format. Data Replication can then capture data from these backup logs.
The Server Manager instance that starts the Microsoft SQL Server Backup task must run on the source database server.
For backup log creation, Data Replication uses the user account that is specified for enabling Change Data Capture. Data Replication uses the native Microsoft SQL Server procedure to produce the backup logs.
Before you begin, in Microsoft SQL Server Management Studio, verify that the SQL Server database is using the full recovery model. You can set the database Recovery Model option to Full in the SQL Server Management Studio or run the following SQL statement:
ALTER DATABASE [
database_name
] SET RECOVERY FULL
If you back up transaction logs from the SQL Server Management Studio or with another tool that can create uncompressed backups in native SQL Server format, you can configure Data Replication to capture changes from those logs. Use of the Data Replication Microsoft SQL Server Backup task is optional.
If you run both Data Replication and native SQL Server replication concurrently, use the native SQL Server backups.
  1. On the
    Server Manager
    tab >
    Tasks
    view, click the
    New
    icon button on the Tasks and Task Dependencies toolbar.
    The
    New Task
    dialog box appears.
  2. In the
    Task name
    field, enter a name for the Microsoft SQL Server Backup task.
  3. In the
    Task type
    list, select
    Microsoft SQL Server Backup
    .
    The following image shows the
    New Task
    dialog box for the Microsoft SQL Server Backup task:
    New dialog box for the Microsoft SQL Server Backup task
  4. In the
    SQL Server instance
    field, enter or browse to the SQL Server instance.
  5. In the
    SQL Server database
    field, enter or browse to the SQL Server database.
  6. In the
    Target folder
    field, browse to the directory to which to write the backup logs. The Extractor will read the logs at this location.
    After adding the Microsoft SQL Server Backup task and including it in a configuration, add this directory on the
    Extract Range
    tab if the directory is not already listed as a backup log file location for the configuration.
  7. If you run native Microsoft SQL server replication and Data Replication replication jobs concurrently, clear the
    Run the sp_repldone procedure
    check box to prevent incomplete data capture by SQL Server.
    Select this check box to run the SQL Server sp_repldone stored procedure prior to backing up the online log. This procedure marks all transactions in the online log as replicated to the distribution database. Data Replication then backs up the replicated data to prevent unlimited growth of the online log. However, native SQL Server replication might then get incomplete data from the online log. Because native SQL Server replication does not read data from backup logs, it might lose some replicated data.
  8. In the
    Owner
    list, select an owner for the backup task.
  9. Click
    OK
    to create the Microsoft SQL Server Backup task.
  10. On the
    Server Manager
    tab >
    Schedules
    view, schedule the backup task. See Creating a Schedule from the Server Manager Tab.
    Alternatively, start the task manually. See Starting a Task Manually.
    To avoid data conflicts and loss, run one Microsoft SQL Server Backup task at a time.

0 COMMENTS

We’d like to hear from you!