All Products
Search
Document Center

ApsaraDB RDS:Migrate data from a self-managed SQL Server database to an ApsaraDB RDS for SQL Server instance

Last Updated:Oct 28, 2024

Database migration is complex and time-consuming. When you migrate a database, you must consider data security and integrity and evaluate the impacts of service interruptions caused by database migration. You can use Alibaba Cloud Data Transmission Service (DTS) to quickly and smoothly migrate a database. You can also perform a full backup on a self-managed SQL Server database and use the backup file to restore data to an ApsaraDB RDS for SQL Server instance.

Preparations

You must create an RDS instance as the destination instance. You can use the RDS instance that is created in Create an ApsaraDB RDS for SQL Server instance as the destination instance. If the RDS instance is released, you must create another RDS instance.

Note

We recommend that you use an RDS instance whose major engine version is later than or equal to the engine version of the self-managed SQL Server database. If the major engine version of the existing RDS instance is earlier than the engine version of the self-managed SQL Server database, you can upgrade the major engine version. For more information, see Upgrade the major engine version.

Billing rules

  • After you create an RDS instance, you are charged for the instance type and the storage capacity of the RDS instance. The fees that are generated for the RDS instance vary based on the billing method, RDS edition, instance type, storage type, and storage capacity. For more information, see Billable items.

  • If you use DTS to migrate data of a self-managed database to an RDS instance, a data migration instance is created and you are charged instance configuration fees. The fees vary based on the duration and the specification of the data migration instance. For more information, see Billable items.

  • If you use a full or incremental backup file to restore a self-managed database to an RDS instance, you must upload the full or incremental backup file of the self-managed SQL Server database to an Object Storage Service (OSS) bucket and then migrate the backup data from the OSS bucket to the RDS instance in the ApsaraDB RDS console. In this case, you are charged storage fees for the OSS bucket. For more information, see Storage fees.

Cloud migration solutions

For more information, see Overview of data migration methods and Migrate SQL Server databases to Alibaba Cloud.

Data source

Whether incremental data migration is supported

Supported solution

Recommended solution

Self-managed SQL Server database

Yes

  • Use OSS to manually migrate data to the cloud based on physical backup files

  • Use DBS and DTS to migrate data to the cloud based on physical backup files

  • Use DTS to perform logical cloud migration

Use DBS and DTS to migrate data to the cloud based on physical backup files with a few clicks. For more information, see Migrate data from a self-managed SQL Server database to an ApsaraDB RDS for SQL Server instance by using a physical gateway.

Azure SQL Database

Yes

  • Use DTS to perform logical cloud migration

    Note

    If you want to migrate incremental data, you must set the SQL Server Incremental Synchronization Mode parameter to Polling and querying CDC instances for incremental synchronization.

  • Use the ApsaraDB RDS console to perform end-to-end cloud migration

  • Use SSMS to perform cloud migration

For more information about how to use the ApsaraDB RDS console to perform end-to-end cloud migration or how to use DTS to perform logical cloud migration, see Migrate data from a SQL Server database on Microsoft Azure to ApsaraDB RDS for SQL Server.

Azure SQL Managed Instance

SQL Server on Azure Virtual Machines

  • Use DTS to perform logical cloud migration

    Note

    If you want to migrate incremental data, you must set the SQL Server Incremental Synchronization Mode parameter to Polling and querying CDC instances for incremental synchronization.

  • Use the ApsaraDB RDS console to perform end-to-end cloud migration

  • Use SSMS to perform cloud migration

  • Use OSS to manually migrate data to the cloud based on physical backup files

Amazon RDS for SQL Server

Yes

  • Use DTS to perform logical cloud migration

    Note

    If you want to migrate incremental data, you must set the SQL Server Incremental Synchronization Mode parameter to Polling and querying CDC instances for incremental synchronization.

  • Use the ApsaraDB RDS console to perform end-to-end cloud migration

  • Use SSMS to perform cloud migration

  • Use OSS to manually migrate data to the cloud based on physical backup files

For more information about how to use the ApsaraDB RDS console to perform end-to-end cloud migration or how to use DTS to perform logical cloud migration, see Migrate data from an Amazon RDS for SQL Server instance to an ApsaraDB RDS for SQL Server instance.

Huawei Cloud RDS for SQL Server

No

  • Use SSMS to perform cloud migration

  • Use DTS to perform logical cloud migration for full data migration

  • Use OSS to manually migrate full data to the cloud based on physical backup files

For more information about how to use OSS to manually migrate full data to the cloud based on physical backup files, see Migrate the full backup data of a self-managed SQL Server instance to an ApsaraDB RDS instance that runs SQL Server 2008 R2 with cloud disks or runs SQL Server 2012 or later.

Note

TencentDB for SQL Server database

Yes

  • Use DTS to perform logical cloud migration

  • Use OSS to manually migrate data to the cloud based on physical backup files

For more information about how to use DTS to perform logical cloud migration, see Migrate data from a self-managed SQL Server database to an ApsaraDB RDS for SQL Server instance.

No

Use SSMS to perform cloud migration

Google Cloud SQL for SQL Server

Yes

  • Use SSMS to perform cloud migration

  • Use DTS to perform logical cloud migration

    Note

    If you want to migrate incremental data, you must set the SQL Server Incremental Synchronization Mode parameter to Polling and querying CDC instances for incremental synchronization.

For more information about how to use DTS to perform logical cloud migration, see Migrate data from a self-managed SQL Server database to an ApsaraDB RDS for SQL Server instance.