tencent cloud

TencentDB for SQL Server

Release Notes and Announcements
Release Notes
Product Announcements
User Guide
Product Introduction
Overview
Product Architecture
Strengths
Use Cases
Regions and AZs
Major Version Lifecycle Explanation
Features and Differences
Instance Types
Instance Specifications
Storage Types
Common Concepts
Network Environment
License Statement
Purchase Guide
Billing Overview
Product Pricing
Purchase Methods
Renewal Instructions
Payment Overdue
Refund
From Pay-as-You-Go to Monthly Subscription
Instance Adjustment Fees Description
Local Backup Space Billing
Cross-Region Backup Billing
Viewing Bill Details
Getting Started
Creating TencentDB for SQL Server Instance
Connecting to TencentDB for SQL Server Instance
Managing TencentDB for SQL Server Instance
Operation Guide
Constraints and Limits
Usage Specifications and Suggestions
Maintaining Instance
Adjusting Instance Configuration
Read-Only Instance
Network and Security
Account Management
Database Management
Data Security
Parameter Configuration
Monitoring and Alarms
Backup and Restoration 
Log Management
Publish-Subscribe
SSIS
Data Migration (New)
Data Migration (Legacy)
Data Synchronization (DTS) 
Practical Tutorial
TencentDB for SQL Server Methods for Regular Maintenance
TencentDB for SQL Server Optimization of Slow SQL
How to Better Use Tempdb
Cross-Account Backup Restoration
Creating VPC for TencentDB for SQL Server
Connecting Kingdee K/3 WISE to TencentDB for SQL Server
Account Permissions and Permission Control
Enabling and Disabling the CDC Feature
Shrinking a Database
API Documentation
History
Introduction
API Category
Making API Requests
Sales and fee related APIs
Instance Management related APIs
Operation and maintenance management related APIs
Network management related APIs
Account management related APIs
Database management related APIs
Security group management related APIs
Data security encryption related APIs
Parameter configuration related APIs
Extended Event related APIs
Log management related APIs
Read only instance management related APIs
Publish and subscribe related APIs
Backup related APIs
Rollback related APIs
Data migration (cold standby migration) related APIs
SQL Server Integration Services (SSIS) related APIs
Data migration (DTS old version) related APIs
Data Types
Error Codes
FAQs
Overview
Model Selection
Pricing and Selection
Connection and Network
Account and Permission
Backup and Rollback
Data Migration
Publish/Subscribe
Read-Only Instance
Version and Architecture Upgrade
Disk Space and Specification Adjustment
Monitoring and Alarms
Log-Related
Parameter Modification
Features
Performance, Space, and Memory-Related FAQs
Service Agreement
Service Level Agreement
Terms of Service
Performance Evaluation
Performance Test Report
Glossary
Contact Us

Usage Instructions

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-03-19 10:17:51

Feasibility of Data Synchronization

Category
Description
Source/Target database type
Source database type:
Self-built databases (IDC self-built databases and self-built databases on CVM): SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019, and 2022.
Note:
If you need to migrate self-built databases to the cloud, we recommend using the DTS migration feature for greater stability. For operations, see Migration Operation Guide.
Databases of third-party vendors (such as Alibaba, AWS, and Google): SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019, and 2022.
TencentDB for SQL Server (same-account and cross-account): SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019, and 2022.
Target database type:
TencentDB for SQL Server (same-account and cross-account): SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019, and 2022.
Synchronization type
Synchronization of structures and full and incremental data is supported.
Synchronization object
Synchronization of database-level data, table-level (user table) data, database and table structures, primary keys, and indexes is supported.
Synchronization of views, storage process, custom functions, custom data types, plan guides, and architectures is supported.
Synchronization of triggers is not supported.
Data type
Supported data types:
Integer types: tinyint, smallint, int, and bigint.
Floating-point number types: real, float, decimal, and numeric.
Bit type: bit.
Character types: char, varchar, nchar, and nvarchar.
Date and time types: date, time, datetime, datetime2, smalldatetime, and datetimeoffset.
Binary types: binary and varbinary.
Unique identifier: uniqueidentifier.
Currency type: money.
Large object types: text and ntext.
Special type: timestamp.
Unsupported data types:
Currency type: smallmoney (bulk insert limitations).
Large object type: image.
MAX types: nvarchar(max) and varbinary(max).
Special types: sql_variant, hierarchyid, geometry, geography, and xml.
Impact on the source database
When Data Transfer Service (DTS) is used to perform data synchronization, it occupies certain resources of the source instance, which may cause the source instance load to increase and add pressure to the database. If your database configuration is low, it is recommended to perform synchronization during off-peak hours.
Impacts related to enabling CDC:
A brief table lock is caused by enabling CDC since the creation of CDC-related tables and SQL Agent jobs results in certain resource consumption.
When CDC is enabled for a long time, note that the incremental data stored by the CDC component is retained for 3 days by default, which may consume a large amount of storage space. It is recommended to use the command exec console.sys.sp_cdc_change_job @job_type = 'cleanup', @retention= <time>; to set the retention time.
Enabling CDC for a long time can also impact transaction log truncation.
Due to CDC limitations, if the number of tables exceeds 1000 and the number of databases exceeds 10, it is recommended to use the data migration or backup and recovery capability.
The default maximum size for a single field that CDC jobs can handle is 64 KB. If any table with CDC enabled contains a single field larger than 64 KB, the command exec sp_configure 'max text repl size', -1; must be used in advance to adjust the source database configurations.
Impact on the target database
It is recommended not to perform data write operations on the target database when a data synchronization task is executed, as this may affect the progress of the synchronization task and impose the risk of data inconsistency.
Permission
Both the source and target databases must have SA permissions. If the source and target databases use TencentDB for SQL Server instances, this permission requirement can be ignored.
Supported SQL statements
DML: INSERT, UPDATE, and DELETE.
Limitation
The data synchronization feature is not suitable for scenarios with a large volume of DML operations within a short period due to the latency.
Foreign key migration is not supported. If tables contain foreign keys, they will not be migrated to the target instance. It is recommended to recreate foreign keys after migration.
DDL operations are not supported. Modifying table structures or deleting tables may cause the synchronization task to fail.
Structure migration cannot be performed independently, and structure and data are required to be migrated together.
Do not modify or delete user information (including usernames, passwords, and permissions) and port numbers in the source and target databases during synchronization, as this may cause the synchronization task to fail.
If the source table is large with long-running transactions during the full synchronization phase, it is recommended to enable READ_COMMITTED_SNAPSHOT.

Supported Capabilities

Feature Category
Sub-feature or Description
Supported Capability
Resumable transfer
-
Resumable transfer is partially supported during the full export (it is not supported for structure export or export of tables without primary keys).
Resumable transfer is supported for full and incremental imports.
Synchronization direction
One-to-one
Supported.
Many-to-one (multiple instances merged to one/multiple tables merged to one)
Not supported.
One-to-many
Not supported.
Bidirectional synchronization
Not supported.
Synchronization within the same instance (only one-to-one mode is supported)
Not supported.

HA Switch

A switch of the source SQL Server will cause the DTS synchronization task to fail.

Business Impact

When DTS is used to perform full data synchronization, it reads all data of the source database once, which increases the load on the source database. If your database specification is low, it is recommended to execute the synchronization task during off-peak hours or reduce the DTS rate before the task is started.
The impact varies depending on the source database specifications. For example, taking the specification of 8 cores and 16 GB as an example, DTS uses 8 concurrent threads (adjustable) by default. Assuming that there is no network bottleneck, the impact of DTS tasks on the performance of the source database is as follows.
DTS full export phase: The tasks consume about 18%–45% CPU on the source database, increase about 40–60 MB/s of query pressure, and occupy about 8 active session connections.
DTS incremental export phase: The tasks put minimal pressure on the source database and establish only one database connection to continuously listen to the CDC tables of the source database.

Business Migration After Data Synchronization

DTS provides a data consistency verification feature in the data synchronization feature. It adopts static data consistency verification to help users verify data consistency for safer service migration. For details, see Data Synchronization Cutover Instructions.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック