You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 70e8d06
Browse filesBrowse the repository at this point in the historyBrowse files
Carlos Robles
committed
Updating migration overview and guides for Azure SQL DB and MI.
Copy file name to clipboardExpand all lines: azure-sql/migration-guides/database/sql-server-to-sql-database-guide.md
+61-56Lines changed: 61 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Follow this guide to migrate your SQL Server databases to Azure SQL
4
4
author: croblesm
5
5
ms.author: roblescarlos
6
6
ms.reviewer: randolphwest
7
-
ms.date: 10/14/2022
7
+
ms.date: 12/29/2022
8
8
ms.service: sql-database
9
9
ms.subservice: migration-guide
10
10
ms.topic: how-to
@@ -18,10 +18,10 @@ In this guide, you learn [how to migrate](https://azure.microsoft.com/migration/
18
18
You can migrate SQL Server running on-premises or on:
19
19
20
20
- SQL Server on Virtual Machines
21
-
- Amazon Web Services (AWS) EC2
22
-
- Amazon Relational Database Service (AWS RDS)
23
-
-Compute Engine (Google Cloud Platform - GCP)
24
-
- Cloud SQL for SQL Server (Google Cloud Platform – GCP)
21
+
- Amazon EC2 (Elastic Compute Cloud)
22
+
- Amazon RDS (Relational Database Service) for SQL Server
23
+
- Google Compute Engine
24
+
- Cloud SQL for SQL Server - GCP (Google Cloud Platform)
25
25
26
26
For more migration information, see the [migration overview](sql-server-to-sql-database-overview.md). For other migration guides, see [Database Migration](/data-migration).
27
27
@@ -32,7 +32,7 @@ For more migration information, see the [migration overview](sql-server-to-sql-d
32
32
For your [SQL Server migration](https://azure.microsoft.com/migration/sql-server/) to Azure SQL Database, make sure you have:
33
33
34
34
- Chosen your [migration method](sql-server-to-sql-database-overview.md#compare-migration-options) and corresponding tools.
35
-
-Installed [Data Migration Assistant (DMA)](https://www.microsoft.com/download/details.aspx?id=53595) on a machine that can connect to your source SQL Server.
35
+
-Install the [Azure SQL migration extension for Azure Data Studio](/sql/azure-data-studio/extensions/azure-sql-migration-extension).
36
36
- Created a target [Azure SQL Database](../../database/single-database-create-quickstart.md).
37
37
- Configured connectivity and proper permissions to access both source and target.
38
38
- Reviewed the database engine features [available in Azure SQL Database](../../database/features-comparison.md).
@@ -57,81 +57,82 @@ For more information about tools available to use for the discover phase, see [S
57
57
58
58
After data sources have been discovered, assess any on-premises SQL Server database(s) that can be migrated to Azure SQL Database to identify migration blockers or compatibility issues.
59
59
60
-
You can use the Data Migration Assistant (version 4.1 and later) to assessdatabases to get:
60
+
The [Azure SQL migration extension for Azure Data Studio](/azure/dms/migration-using-azure-data-studio) provides a seamless wizard based experience to assess, get Azure recommendations and migrate your SQL Server databases on-premises to SQL Server on Azure Virtual Machines. Besides, highlighting any migration blockers or warnings, the extension also includes an option for Azure recommendations to collect your databases' performance data [to recommend a right-sized Azure SQL Managed Instance](/azure/dms/ads-sku-recommend) to meet the performance needs of your workload (with the least price).
1. Open the [Data Migration Assistant (DMA)](https://www.microsoft.com/download/details.aspx?id=53595).
68
-
1. Select **File** and then choose **New assessment**.
69
-
1.Specify a project name, select SQL Server as the source server type, and then select Azure SQL Database as the target server type.
70
-
1.Select the type(s) of assessment reports that you want to generate. For example, database compatibility and feature parity. Based on the type of assessment, the permissions required on the source SQL Server can be different. DMA will highlight the permissions required for the chosen advisor before running the assessment.
71
-
- The **feature parity** category provides a comprehensive set of recommendations, alternatives available in Azure, and mitigating steps to help you plan your migration project. (sysadmin permissions required)
72
-
- The **compatibility issues** category identifies partially supported or unsupported feature compatibility issues that might block migration, and recommendations to address them (`CONNECT SQL`, `VIEW SERVER STATE`, and `VIEW ANY DEFINITION` permissions required).
73
-
1.Specify the source connection details for your SQL Server and connect to the source database.
74
-
1.Select **Start assessment**.
75
-
1.After the process completes, select and review the assessment reports for migration blocking and feature parity issues. The assessment report can also be exported to a file that can be shared with other teams or personnel in your organization.
67
+
To assess your environment using the Azure SQL Migration extension, follow these steps:
68
+
69
+
1.Open the [Azure SQL Migration extension for Azure Data Studio](/sql/azure-data-studio/extensions/azure-sql-migration-extension).
70
+
1.Connect to your source SQL Server instance
71
+
1. Click the *Migrate to Azure SQL* button, in the Azure SQL Migration wizard in Azure Data Studio
72
+
1. Select databases for assessment, then click on next
73
+
1.Select your Azure SQL target, in this case, Azure SQL Database (Preview)
74
+
1.Click on *View/Select* to review the assessment report
75
+
1.Look for migration blocking and feature parity issues. The assessment report can also be exported to a file that can be shared with other teams or personnel in your organization.
76
76
1. Determine the database compatibility level that minimizes post-migration efforts.
77
-
1. Identify the best Azure SQL Database SKU for your on-premises workload.
78
77
79
-
To learn more, see [Perform a SQL Server migration assessment with Data Migration Assistant](/sql/dma/dma-assesssqlonprem).
78
+
To get an Azure recommendation using the Azure SQL Migration extension, follow these steps:
79
+
80
+
1. Open the [Azure SQL Migration extension for Azure Data Studio](/sql/azure-data-studio/extensions/azure-sql-migration-extension).
81
+
1. Connect to your source SQL Server instance
82
+
1. Click the *Migrate to Azure SQL* button, in the Azure SQL Migration wizard in Azure Data Studio
83
+
1. Select databases for assessment, then click on next
84
+
1. Select your Azure SQL target, in this case, Azure SQL Database (Preview)
85
+
1. Navigate to the Azure recommendations sections, click on *Get Azure recommendation*
86
+
1. Select Collect performance data now. Select a folder on your local computer to store the performance logs, and then select Start.
87
+
1. After 10 minutes, Azure Data Studio indicates that a recommendation is available for Azure SQL Database.
88
+
1. Check the Azure SQL Database card, in the Azure SQL target panel to review your Azure SQL Database SKU recommendation
80
89
81
-
If the assessment encounters multiple blockers to confirm that your database it not ready for an Azure SQL Database migration, then alternatively consider:
90
+
To learn more, see [Tutorial: Migrate SQL Server to Azure SQL Database (preview) offline in Azure Data Studio](/azure/dms/tutorial-sql-server-azure-sql-database-offline-ads).
91
+
92
+
If the assessment encounters multiple blockers to confirm that your database is not ready for an Azure SQL Database migration, then alternatively consider:
82
93
83
94
-[Azure SQL Managed Instance](../managed-instance/sql-server-to-managed-instance-overview.md) if there are multiple instance-scoped dependencies
84
95
-[SQL Server on Azure Virtual Machines](../virtual-machines/sql-server-to-sql-on-azure-vm-migration-overview.md) if both SQL Database and SQL Managed Instance fail to be suitable targets.
85
96
86
97
#### Scaled assessments and analysis
87
98
88
-
Data Migration Assistant supports performing scaled assessments and consolidation of the assessment reports for analysis.
99
+
The [Azure SQL Migration extension for Azure Data Studio](/sql/azure-data-studio/extensions/azure-sql-migration-extension) and [Azure Migrate](https://azure.microsoft.com/services/azure-migrate) supports performing scaled assessments and consolidation of the assessment reports for analysis.
89
100
90
101
If you have multiple servers and databases that need to be assessed and analyzed at scale to provide a wider view of the data estate, see the following links to learn more:
91
102
92
-
-[Performing scaled assessments using PowerShell](/sql/dma/dma-consolidatereports)
93
-
-[Analyzing assessment reports using Power BI](/sql/dma/dma-consolidatereports#dma-reports)
103
+
-[Migrate databases at scale using automation (Preview) - Azure SQL Migration extension](/azure/dms/migration-dms-powershell-cli)
104
+
-[Performing scaled assessments using PowerShell - Azure Migrate](/sql/dma/dma-consolidatereports)
105
+
-[Analyzing assessment reports using Power BI - Azure Migrate](/sql/dma/dma-consolidatereports#dma-reports)
94
106
95
107
> [!IMPORTANT]
96
108
> Running assessments at scale for multiple databases, especially large ones, can also be automated using the [DMA Command Line Utility](/sql/dma/dma-commandline) and uploaded to [Azure Migrate](/sql/dma/dma-assess-sql-data-estate-to-sqldb#view-target-readiness-assessment-results) for further analysis and target readiness.
97
109
98
-
## Migrate
99
-
100
-
After you have completed tasks associated with the pre-migration stage, you are ready to perform the schema and data migration.
101
-
102
-
Migrate your data using your chosen [migration method](sql-server-to-sql-database-overview.md#compare-migration-options).
110
+
### Deploy to an optimally sized managed instance
103
111
104
-
This guide describes the two most popular options - Data Migration Assistant and Azure Database Migration Service.
112
+
You can use the [Azure SQL migration extension for Azure Data Studio](/sql/azure-data-studio/extensions/azure-sql-migration-extension) to get right-sized Azure SQL Managed Instance recommendation. The extension collects performance data from your source SQL Server instance to provide right-sized Azure recommendation that meets your workload's performance needs with minimal cost. To learn more, see [Get right-sized Azure recommendation for your on-premises SQL Server database(s)](/azure/dms/ads-sku-recommend)
105
113
106
-
### Data Migration Assistant (DMA)
114
+
Based on the information in the discover and assess phase, create an appropriately sized target Azure SQL Database. You can do so by using the [Quickstart: Create a single database - Azure SQL Database](/azure/azure-sql/database/single-database-create-quickstart).
107
115
108
-
To migrate a database from SQL Server to Azure SQL Database using DMA, follow these steps:
116
+
## Migrate
109
117
110
-
1. Download and install the [Database Migration Assistant](https://www.microsoft.com/download/details.aspx?id=53595).
111
-
1. Create a new project and select **Migration** as the project type.
112
-
1. Set the source server type to **SQL Server** and the target server type to **Azure SQL Database**, select the migration scope as **Schema and data** and select **Create**.
113
-
1. In the migration project, specify the source server details such as the server name, credentials to connect to the server and the source database to migrate.
114
-
1. In the target server details, specify the Azure SQL Database server name, credentials to connect to the server and the target database to migrate to.
115
-
1. Select the schema objects and deploy them to the target Azure SQL Database.
116
-
1. Finally, select **Start data migration** and monitor the progress of migration.
118
+
After you have completed tasks associated with the pre-migration stage, you are ready to perform the schema and data migration.
117
119
118
-
For a detailed tutorial, see [Migrate on-premises SQL Server or SQL Server on Azure VMs to Azure SQL Database using the Data Migration Assistant](/sql/dma/dma-migrateonpremsqltosqldb).
120
+
Migrate your data using your chosen [migration method](sql-server-to-sql-database-overview.md#compare-migration-options).
119
121
120
-
> [!NOTE]
121
-
> The compatibility level of the imported database is based on the compatibility level of your source database.
122
122
123
-
### Azure Database Migration Service (DMS)
123
+
### Migrate using the Azure SQL migration extension for Azure Data Studio
124
124
125
-
To migrate databases from SQL Server to Azure SQL Database using DMS, follow the steps below:
125
+
To perform an offline migration using Azure Data Studio, follow the high-level steps below. For a detailed step-by-step tutorial, see [Tutorial: Migrate SQL Server to Azure SQL Database (preview) offline in Azure Data Studio](/azure/dms/tutorial-sql-server-azure-sql-database-offline-ads).
126
126
127
-
1. If you haven't already, register the **Microsoft.DataMigration** resource provider in your subscription.
128
-
1. Create an Azure Database Migration Service Instance in a desired location of your choice (preferably in the same region as your target Azure SQL Database). Select an existing virtual network or create a new one to host your DMS instance.
129
-
1. After your DMS instance is created, create a new migration project and specify the source server type as **SQL Server** and the target server type as **Azure SQL Database**. Choose **Offline data migration** as the activity type in the migration project creation blade.
130
-
1. Specify the source SQL Server details on the **Migration source** details page and the target Azure SQL Database details on the **Migration target** details page.
131
-
1. Map the source and target databases for migration and then select the tables you want to migrate.
132
-
1. Review the migration summary and select **Run migration**. You can then monitor the migration activity and check the progress of your database migration.
127
+
1. Download and install [Azure Data Studio](/sql/azure-data-studio/download-azure-data-studio) and the [Azure SQL migration extension](/sql/azure-data-studio/extensions/azure-sql-migration-extension).
128
+
1. Launch the Migrate to Azure SQL Migration wizard in the extension in Azure Data Studio.
129
+
1. Select databases for assessment and view migration readiness or issues (if any). Additionally, collect performance data and get right-sized Azure recommendation.
130
+
1. Select your Azure account and your target Azure SQL Database from your subscription.
131
+
1. Select the list of tables to migrate.
132
+
1. Create a new Azure Database Migration Service using the wizard in Azure Data Studio. If you've previously created an Azure Database Migration Service using Azure Data Studio, you can reuse the same if desired.
133
+
1.*Optional*: If your backups are on an on-premises network share, download and install [self-hosted integration runtime](https://www.microsoft.com/download/details.aspx?id=39717) on a machine that can connect to the source SQL Server, and the location containing the backup files.
134
+
1. Start the database migration and monitor the progress in Azure Data Studio. You can also monitor the progress under the Azure Database Migration Service resource in Azure portal.
133
135
134
-
For a detailed tutorial, see [Migrate SQL Server to an Azure SQL Database using DMS](/azure/dms/tutorial-sql-server-to-azure-sql).
135
136
136
137
## Data sync and cutover
137
138
@@ -182,8 +183,6 @@ To speed up migration to Azure SQL Database, you should consider the following r
182
183
|**Source (typically on premises)**| The primary bottleneck during migration from the source is data file I/O and latency, which needs to be monitored carefully. | Based on data file I/O and latency, and depending on whether it's a virtual machine or physical server, you may have to engage your storage admin and explore options to mitigate the bottleneck. |
183
184
|**Target (Azure SQL Database)**| The biggest limiting factor is the log generation rate and latency on your database log file. With Azure SQL Database, you can get a maximum log generation rate of 96 MB/s. | To speed up migration, scale up the target Azure SQL database to Business Critical Gen5 8 vCore to get the maximum log generation rate of 96 MB/s, which also provides low latency for log files. The [Hyperscale](../../database/service-tier-hyperscale.md) service tier provides a log rate of 100 MB/s regardless of chosen service level. |
184
185
|**Network**| The network bandwidth needed is equal to the maximum log ingestion rate 96 MB/s (768 Mb/s) | Depending on network connectivity from your on-premises data center to Azure, check your network bandwidth (typically [Azure ExpressRoute](/azure/expressroute/expressroute-introduction#bandwidth-options)) to accommodate for the maximum log ingestion rate. |
185
-
|**Virtual machine used for Data Migration Assistant (DMA)**| CPU is the primary bottleneck for the virtual machine running DMA | Things to consider to speed up data migration by using:<br />- Azure compute-intensive VMs<br />- Use at least F8s_v2 (8 vCore) VM for running DMA<br />- Ensure the VM is running in the same Azure region as the target. |
186
-
|**Azure Database Migration Service (DMS)**| There can be compute resource contention and database objects consideration for DMS. | Use Premium 4 vCore. DMS automatically takes care of database objects like foreign keys, triggers, constraints, and non-clustered indexes and doesn't need manual intervention. |
187
186
188
187
You can also consider these recommendations for best performance during the migration process.
189
188
@@ -237,7 +236,13 @@ You may encounter a wide variety of compatibility issues, depending both on the
237
236
238
237
## Next steps
239
238
240
-
For a matrix of the Microsoft and third-party services and tools that are available to assist you with various database and data migration scenarios as well as specialty tasks, see [Service and tools for data migration](/azure/dms/dms-tools-matrix).
239
+
- See [Service and tools for data migration](/azure/dms/dms-tools-matrix) for a matrix of the Microsoft and third-party services and tools that are available to assist you with various database and data migration scenarios as well as specialty tasks.
240
+
241
+
- To learn more about the Azure SQL Migration extension see:
242
+
243
+
-[Migrate databases with Azure SQL Migration extension for Azure Data Studio](/azure/dms/dms-overview#migrate-databases-with-azure-sql-migration-extension-for-azure-data-studio)
244
+
245
+
-[Tutorial: Migrate SQL Server to Azure SQL Database (preview) offline in Azure Data Studio](/azure/dms/tutorial-sql-server-azure-sql-database-offline-ads).
241
246
242
247
To learn more about [Azure Migrate](https://azure.microsoft.com/services/azure-migrate) see:
243
248
@@ -256,4 +261,4 @@ To learn more about the framework and adoption cycle for Cloud migrations, see:
256
261
257
262
To assess the Application access layer, see [Data Access Migration Toolkit (Preview)](https://marketplace.visualstudio.com/items?itemName=ms-databasemigration.data-access-migration-toolkit)
258
263
259
-
For details on how to perform Data Access Layer A/B testing see [Database Experimentation Assistant](/sql/dea/database-experimentation-assistant-overview).
264
+
For details on how to perform Data Access Layer A/B testing see [Database Experimentation Assistant](/sql/dea/database-experimentation-assistant-overview).
0 commit comments