Skip to content

Commit e7483d4

Browse files
Merge pull request #34877 from rwestMSFT/rw-0803-minor-fixes
Minor fixes to database-migration-service article
2 parents e7b16ec + cfd810c commit e7483d4

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

data-migration/sql-server/database/database-migration-service.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ To complete this tutorial, you need the following prerequisites:
7474
To create the login and user on the target Azure SQL Database, run the following script on the `master` database:
7575

7676
```sql
77-
CREATE LOGIN testuser with Password = '*********'
77+
CREATE LOGIN testuser WITH PASSWORD = '<password>';
7878

7979
ALTER SERVER ROLE ##MS_DefinitionReader## ADD MEMBER [testuser];
8080
GO
@@ -88,9 +88,9 @@ GO
8888
ALTER SERVER ROLE ##MS_LoginManager## ADD MEMBER [testuser];
8989
GO
9090

91-
CREATE USER testuser from login testuser;
92-
EXEC sp_addRoleMember 'dbmanager', 'testuser';
93-
EXEC sp_addRoleMember 'loginmanager', 'testuser';
91+
CREATE USER testuser FOR LOGIN testuser;
92+
EXECUTE sp_addRoleMember 'dbmanager', 'testuser';
93+
EXECUTE sp_addRoleMember 'loginmanager', 'testuser';
9494
```
9595

9696
Now, you can migrate both the database schema and data using Database Migration Service. You can also use other tools such as the [SQL Server dacpac extension](/azure-data-studio/extensions/sql-server-dacpac-extension) or the [SQL Database Projects extension](/azure-data-studio/extensions/sql-database-project-extension) in Azure Data Studio to migrate the schema before selecting the list of tables to migrate.
@@ -207,7 +207,6 @@ To open the Migrate to Azure SQL wizard:
207207
> [!NOTE]
208208
> If no tables are selected or if a username and password aren't entered, the **Next** button isn't available to select.
209209
210-
211210
Now, you can migrate database Schema and data both using Database Migration Service. Also, you can use tools like the [SQL Server dacpac extension](/azure-data-studio/extensions/sql-server-dacpac-extension) or the [SQL Database Projects extension](/azure-data-studio/extensions/sql-database-project-extension) in Azure Data Studio to migrate Schema before selecting the list of tables to migrate.
212211

213212
### Create a Database Migration Service instance
@@ -358,7 +357,7 @@ Before you begin the tutorial:
358357
To create the login and user on the target Azure SQL Database, run the following script on the `master` database:
359358

360359
```sql
361-
CREATE LOGIN testuser with Password = '*********'
360+
CREATE LOGIN testuser WITH PASSWORD = '<password>';
362361

363362
ALTER SERVER ROLE ##MS_DefinitionReader## ADD MEMBER [testuser];
364363
GO
@@ -372,9 +371,9 @@ GO
372371
ALTER SERVER ROLE ##MS_LoginManager## ADD MEMBER [testuser];
373372
GO
374373

375-
CREATE USER testuser from login testuser;
376-
EXEC sp_addRoleMember 'dbmanager', 'testuser';
377-
EXEC sp_addRoleMember 'loginmanager', 'testuser';
374+
CREATE USER testuser FOR LOGIN testuser;
375+
EXECUTE sp_addRoleMember 'dbmanager', 'testuser';
376+
EXECUTE sp_addRoleMember 'loginmanager', 'testuser';
378377
```
379378

380379
Now, you can migrate both the database schema and data using Database Migration Service. You can also use other tools such as the [SQL Server dacpac extension](/azure-data-studio/extensions/sql-server-dacpac-extension) or the [SQL Database Projects extension](/azure-data-studio/extensions/sql-database-project-extension) in Azure Data Studio to migrate the schema before selecting the list of tables to migrate.
@@ -396,17 +395,17 @@ Now, you can migrate both the database schema and data using Database Migration
396395

397396
:::image type="content" source="media/database-migration-service/dms-portal-sql-database-scenario-new.png" alt-text="Screenshot of select new migration scenario." lightbox="media/database-migration-service/dms-portal-sql-database-scenario-new.png":::
398397

399-
1. On the **Azure SQL Database Offline Migration Wizard**, follow these steps:
398+
1. On the **Azure SQL Database Offline Migration Wizard**, follow these steps:
400399

401-
1. On the **Source details** tab, enter details for the source SQL Server instance, and then select **Next: Connect to source SQL Server**:
400+
1. On the **Source details** tab, enter details for the source SQL Server instance, and then select **Next: Connect to source SQL Server**:
402401

403402
:::image type="content" source="media/database-migration-service/dms-portal-sql-database-source-1-new.png" alt-text="Screenshot of Source Tracking." lightbox="media/database-migration-service/dms-portal-sql-database-source-1-new.png":::
404403

405-
1. On the **Connect to source SQL Server** tab, provide connection details and then select **Next: Select databases for migration**:
406-
404+
1. On the **Connect to source SQL Server** tab, provide connection details and then select **Next: Select databases for migration**:
405+
407406
:::image type="content" source="media/database-migration-service/dms-portal-sql-database-source-2-new.png" alt-text="Screenshot of Connect to source." lightbox="media/database-migration-service/dms-portal-sql-database-source-2-new.png":::
408407

409-
1. On the **Select databases for migration** tab, check the box next to the databases you want to migrate. Populating the list of databases can take some time. Select **Next: Connect to target Azure SQL Database**.
408+
1. On the **Select databases for migration** tab, check the box next to the databases you want to migrate. Populating the list of databases can take some time. Select **Next: Connect to target Azure SQL Database**.
410409

411410
:::image type="content" source="media/database-migration-service/dms-portal-sql-database-select-db-1-new.png" alt-text="Screenshot of select db." lightbox="media/database-migration-service/dms-portal-sql-database-select-db-1-new.png":::
412411

@@ -418,7 +417,7 @@ Now, you can migrate both the database schema and data using Database Migration
418417

419418
:::image type="content" source="media/database-migration-service/dms-portal-sql-database-map-db-1-new.png" alt-text="Screenshot of Map databases." lightbox="media/database-migration-service/dms-portal-sql-database-map-db-1-new.png":::
420419

421-
1. (Optional) Check the box next to **Migrate Missing schema** to deploy missing schema objects from the source to the Azure SQL Database target to migrate the following schema objects with a *single checkbox*:
420+
1. (Optional) Check the box next to **Migrate Missing schema** to deploy missing schema objects from the source to the Azure SQL Database target to migrate the following schema objects with a *single checkbox*:
422421

423422
- Schemas
424423
- Tables (selected)
@@ -442,8 +441,8 @@ Now, you can migrate both the database schema and data using Database Migration
442441
- XmlSchemaCollections
443442

444443
> [!NOTE]
445-
> - If you select **Migrate Missing Schema**, the Database Migration service performs the schema migration before data is migrated.
446-
> - DMS proceeds with the data migration phase even if schema migration encounters errors, unless there are issues with table objects.
444+
> - If you select **Migrate Missing Schema**, the Database Migration service performs the schema migration before data is migrated.
445+
> - DMS proceeds with the data migration phase even if schema migration encounters errors, unless there are issues with table objects.
447446
448447
Next, either use **Select all tables** to migrate all tables, or use the text entry box to filter the list of tables and select individual tables to migrate. Then select **Next: Database migration summary**.
449448

@@ -477,7 +476,7 @@ Now, you can migrate both the database schema and data using Database Migration
477476
| **Rebuilding indexes** | The service is rebuilding indexes on target tables. |
478477
| **Succeeded** | All data is copied and the indexes are rebuilt. |
479478

480-
1. Under **Source name**, select a database name to open the table view.. In this detailed view, you see the current status of the migration, the number of tables that currently are in that status, and a detailed status of each table:
479+
1. Under **Source name**, select a database name to open the table view.. In this detailed view, you see the current status of the migration, the number of tables that currently are in that status, and a detailed status of each table:
481480

482481
:::image type="content" source="media/database-migration-service/dms-portal-sql-database-monitoring-1-new.png" alt-text="Screenshot of Detailed migration monitoring." lightbox="media/database-migration-service/dms-portal-sql-database-monitoring-1-new.png":::
483482

0 commit comments

Comments
 (0)