当前位置:网站首页>SQL Server real time backup library requirements
SQL Server real time backup library requirements
2022-06-25 17:57:00 【Game programming】

SQL Server 2008 After that, the built-in method was provided “ Change data capture ”(Change Data Capture namely CDC) To achieve asynchronous tracking of user table data modification .
One 、 Environmental requirements
1、SQL Server 2008 And above ( For the library ).
2、SQL Server Active and standby environment requirements : The standby database and the primary database are synchronized in real time and can be read . Currently supported standby databases There are two options : Copying model ( Publish subscribe )、AlwaysOn.
3、SQL Server Standby library is on CDC、 And specify that the table is opened CDC.
4、 Ensure that the standby database is in a continuous connectable state ( We need to access the standby database directly ), If this condition cannot be met , have to A new standby database server must be provided .
Two 、 Backup library on CDC Operation steps
1、 Make sure sql server Built in CDC The function is on You can query through the following command CDC state SELECT name,is_cdc_enabled FROM sys.databases WHERE name = ‘dbname’ Opening method
EXECUTE sys.sp_cdc_enable_db; Copying model ( Publish subscribe ) This operation should be performed on the standby database ,AlwaysOn In mode , Because the standby database is read-only , So you need to perform operations in the main database .
2、 Need to start SQL SERVER Agent(SQL Server Agency service )
3、 Account creation You need to create an account for cdc For extraction service , The account has the following conditions : SQL Server Of sysadmin Fixed server role members . Database db_owner.
4、 Turn on the watch CDC -- Parameters @
author : Program the ape * Siege lions
Game programming , A game development favorite ~
If the picture is not displayed for a long time , Please use Chrome Kernel browser .
边栏推荐
- 利用Qt制作美化登录界面框
- HMS Core机器学习服务实现同声传译,支持中英文互译和多种音色语音播报
- 配电室环境的分布式远程管理
- 篇5:VS2017搭建QT5.9.9开发环境
- The performance of the server's four channel memory is improved. How about the performance of the four channel memory
- Vscode / * * generate function comments
- CVPR small target detection: context and attention mechanisms improve small target detection (attached with paper Download)
- How to solve the problem of network disconnection after enabling hotspot sharing in win10?
- Find the longest substring length satisfying the condition
- Huawei cloud gaussdb (for redis) unveiling issue 19: gaussdb (for redis) comprehensive comparison with CODIS
猜你喜欢
![Jerry's system clock setting is reset or invalid [chapter]](/img/c6/ee6b287af7d309f98abda8e11d674c.png)
Jerry's system clock setting is reset or invalid [chapter]
沁恒CH583 USB 自定义HID调试记录
![[tips] how to quickly start a new position for a new software testing engineer](/img/88/5c002f492db56c646cbfd1ee98cd5b.png)
[tips] how to quickly start a new position for a new software testing engineer

使用DiskGenius拓展系統盤C盤的容量
Qinheng ch583 USB custom hid debugging record

Mobile heterogeneous computing technology - GPU OpenCL programming (basic)

微博评论的计算架构

Kotlin of Android cultivation manual - several ways to write a custom view

New characteristics of cultural consumption in the era of digital economy

移动端异构运算技术 - GPU OpenCL 编程(基础篇)
随机推荐
有关QueryInterface函数
利用Qt制作美化登录界面框
The Stackies 2022:32个营销技术栈入选
Precautions for using Jerry's timer [chapter]
Huawei cloud gaussdb (for redis) unveiling issue 19: gaussdb (for redis) comprehensive comparison with CODIS
[matlab] data statistical analysis
MySQL mysql-8.0.19-winx64 installation and Navicat connection
微信小程序报错:request:fail url not in domain list
Time series analysis of data mining [easy to understand]
什么是算子?
Qt使用SQLITE数据库
Precautions for the use of Jerry's wake-up mouth [chapter]
Getting started with kotlin (20) several common dialog boxes
ASP. Net supermarket convenience store online shopping mall source code, for the surrounding distribution system
Unity technical manual - size over lifetime and size by speed
QT generate random numbers (random strings) within the specified range
求满足条件的最长子串长度
Video production material website arrangement
深度学习网路模型
SDN system method | 10 The future of SDN