Relational Database ServiceRelational Database Service

Elastic Cloud Server
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
Domain Name Service
VPC Endpoint
Cloud Connect
Enterprise Switch
Security & Compliance
Web Application Firewall
Host Security Service
Data Encryption Workshop
Database Security Service
Advanced Anti-DDoS
Data Security Center
Container Guard Service
Situation Awareness
Managed Threat Detection
Cloud Certificate Manager
Anti-DDoS Service
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GaussDB(for MySQL)
Distributed Database Middleware
GaussDB(for openGauss)
Developer Services
Distributed Cache Service
Simple Message Notification
Application Performance Management
Application Operations Management
Blockchain Service
API Gateway
Cloud Performance Test Service
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Cloud Communications
Message & SMS
Cloud Ecosystem
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP License Service
Support Plans
Customer Operation Capabilities
Partner Support Plans
Professional Services
Intelligent EdgeFabric
SDK Developer Guide
API Request Signing Guide
Koo Command Line Interface
Help Center> Relational Database Service> User Guide> Working with RDS for SQL Server> Backups and Restorations> Restoring from Backup Files to a Self-Built SQL Server Database
Updated at: Apr 02, 2022 GMT+08:00

Restoring from Backup Files to a Self-Built SQL Server Database

You can download backup files by referring to section Downloading a Backup File and restore data from them. You can use SQL Server Management Studio (SSMS) to connect to a self-built ECS database or local database to restore data. The following uses SSMS as an example to show how to restore data from a backup file on a local database.

  • Before restoring data, ensure that the ECS has been installed with the SQL Server database service running a same or later version than the SQL Server databases.
  • You can use the unsynchronized backup and the last backup to restore data. To obtain the unsynchronized backup, download it from the RDS console. To obtain the last backup, contact customer service.


  1. Download SSMS and upload it to the ECS for installation.

    Download SSMS 18.0 (GA) from the website and upload it to the ECS.

  2. On the ECS, decompress the RDS full backup file that has been downloaded.
  3. Start the SSMS client.
  4. Log in to the local database service through the SSMS client.
  5. In the SSMS client, right-click Databases and choose Restore Database.

  6. In the displayed Restore Database dialog box, select Device in the Source pane. In the displayed Select backup devices dialog box, specify the backup media and its location and click OK.

    1. Set Backup media type to File.

    2. Click Add to add the decompressed backup file (in the .bak format) and configure required information on the Options page.
      Figure 1 Adding a backup file
      Figure 2 Configuring required options

    3. Click OK to add the backup file to the backup media list and click OK again to restore the backup file to a self-built database.

Did you find this page helpful?

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel