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
Copy file name to clipboardExpand all lines: docs/sql-server/migrate/guides/db2-to-sql-server.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,13 +48,24 @@ To create an assessment, follow these steps:
48
48
1. Provide a project name, a location to save your project, and then select a SQL Server migration target from the drop-down.
49
49
1. Select **OK**.
50
50
51
-
:::image type="content" source="media/db2-to-sql-server/ssma-db2-new-project.png" alt-text="Select new SSMA project":::
51
+
52
52
53
53
1. Enter in values for the DB2 connection details on the **Connect to DB2** dialog box.
54
-
1. Select the DB2 schema you want to migrate, and then select **Create report**. You can do so by either selecting the schema and then choosing **Create Report** from the navigation bar, or right-clicking your schema and then choosing **Create Report**. This will generate an HTML report .
55
-
1. Review the HTML report to identify conversion statistics and any errors or warnings. You can also open the report in Excel to get an inventory of DB2 objects and the effort required to perform schema conversions. The default location for the report is in the report folder within SSMAProjects.
54
+
55
+
:::image type="content" source="media/db2-to-sql-server/connect-to-db2.png" alt-text="Connect to your DB2 instance":::
56
+
57
+
58
+
1. Right-click the DB2 schema you want to migrate, and then choose **Create report**. This will generate an HTML report .
59
+
60
+
:::image type="content" source="media/db2-to-sql-server/create-report.png" alt-text="Right-click the schema and choose create report":::
61
+
62
+
1. Review the HTML report to identify conversion statistics and any errors or warnings. You can also open the report in Excel to get an inventory of DB2 objects and the effort required to perform schema conversions. The default location for the report is in the report folder within SSMAProjects.
63
+
56
64
For example: `drive:\<username>\Documents\SSMAProjects\MyDB2Migration\report\report_<date>`.
57
65
66
+
:::image type="content" source="media/db2-to-sql-server/report.png" alt-text="Review the report to identify an errors or warnings":::
67
+
68
+
58
69
59
70
### Validate data types
60
71
@@ -65,6 +76,8 @@ Validate the default data type mappings and change them based on requirements if
65
76
1. Select the **Type mappings** tab.
66
77
1. You can change the type mapping for each table by selecting the table in the **DB2 Metadata explorer**.
67
78
79
+
:::image type="content" source="media/db2-to-sql-server/type-mapping.png" alt-text="Select the schema and then type-mapping":::
80
+
68
81
### Schema conversion
69
82
70
83
To convert the schema, follow these steps:
@@ -74,21 +87,36 @@ To convert the schema, follow these steps:
74
87
1. Enter connection details to connect to your SQL Server instance.
75
88
1. Choose an existing database on the target server, or provide a new name to create a new database.
76
89
1. Select **Connect**.
90
+
91
+
:::image type="content" source="media/db2-to-sql-server/connect-to-sql-server.png" alt-text="Fill in details to connect to SQL Server":::
92
+
93
+
77
94
1. Right-click the schema and then choose **Convert Schema**.
95
+
96
+
:::image type="content" source="media/db2-to-sql-server/convert-schema.png" alt-text="Right-click the schema and choose convert schema":::
97
+
78
98
1. After the conversion completes, compare and review the structure of the schema to identify potential problems and address them based on the recommendations.
79
99
1. Save the project locally for an offline schema remediation exercise. Select **Save Project** from the **File** menu.
80
100
81
-
82
101
## Migrate
83
102
84
103
After you have completed assessing your databases and addressing any discrepancies, the next step is to execute the migration process.
85
104
86
105
To migrate your data, follow these steps:
87
106
88
-
1. Publish the schema: Right-click the database from the **Databases** node in the **SQL Server Metadata Explorer** and choose **Synchronize with Database**.
107
+
1. Publish the schema: Right-click the database from the **Databases** node in the **SQL Server Metadata Explorer** and choose **Synchronize with Database**.
108
+
109
+
110
+
89
111
1. Migrate the data: Right-click the schema from the **DB2 Metadata Explorer** and choose **Migrate Data**.
112
+
113
+
:::image type="content" source="media/db2-to-sql-server/migrate-data.png" alt-text="Right-click the schema and choose migrate data":::
114
+
90
115
1. Provide connection details for both the DB2 and SQL Server instances.
91
116
1. View the **Data Migration report**.
117
+
118
+
:::image type="content" source="media/db2-to-sql-server/data-migration-report.png" alt-text="Review the data migration report":::
119
+
92
120
1. Connect to your SQL Server instance by using SQL Server Management Studio and validate the migration by reviewing the data and schema.
0 commit comments