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/ssma/db2/migrating-db2-data-into-sql-server-db2tosql.md
+3-33Lines changed: 3 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,19 +14,12 @@ f1_keywords:
14
14
# Migrating DB2 Data into SQL Server (DB2ToSQL)
15
15
After you have successfully synchronized the converted objects with [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], you can migrate data from DB2 to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
16
16
17
-
> [!IMPORTANT]
18
-
> If the engine being used is Server Side Data Migration Engine, then, before you can migrate data, you must install the SSMA for DB2 Extension Pack and the DB2 providers on the computer that is running SSMA. The SQL Server Agent service must also be running. For more information about how to install the extension pack, see [Installing SSMA Components on SQL Server](./installing-ssma-components-on-sql-server-db2tosql.md)
19
17
20
18
## Setting Migration Options
21
19
Before migrating data to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], review the project migration options in the **Project Settings** dialog box.
22
20
23
21
- By using this dialog box you can set options such as migration batch size, table locking, constraint checking, null value handling, and identity value handling. For more information about the Project Migration Settings, see [Project Settings (Migration)](./project-settings-migration-db2tosql.md).
24
-
25
-
- The **Migration Engine** in the **Project Settings** dialog box, allows the user to perform the migration process using two types of data migration engines:
26
-
27
-
1. Client Side Data Migration Engine
28
-
29
-
2. Server Side Data Migration Engine
22
+
-
30
23
31
24
**Client Side Data Migration:**
32
25
@@ -37,11 +30,6 @@ Before migrating data to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md
37
30
> [!NOTE]
38
31
> The **Client-Side Data Migration Engine** resides inside the SSMA application and is, therefore, not dependent on the availability of the extension pack.
39
32
40
-
**Server Side Data Migration:**
41
-
42
-
- During the Server side data migration, the engine resides on the target database. It is installed through the extension pack. For more information on how to install the extension pack, see [Installing SSMA Components on SQL Server](./installing-ssma-components-on-sql-server-db2tosql.md)
43
-
44
-
- To initiate migration on the server side, select the **Server Side Data Migration Engine** option in the **Project Settings** dialog box.
45
33
46
34
## Migrating Data to SQL Server
47
35
Migrating data is a bulk-load operation that moves rows of data from DB2 tables into [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] tables in transactions. The number of rows loaded into [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] in each transaction is configured in the project settings.
@@ -62,35 +50,17 @@ To view migration messages, make sure that the Output pane is visible. Otherwise
62
50
63
51
- To migrate data or omit individual tables, first expand the schema, expand **Tables**, and then select or clear the check box next to the table.
64
52
65
-
3. To migrate data, two cases arise:
66
-
67
-
**Client Side Data Migration:**
68
-
69
-
- For performing **Client Side Data Migration**, select the **Client Side Data Migration Engine** option in the **Project Settings** dialog box.
70
53
71
-
**Server Side Data Migration:**
54
+
3. Right-click **Schemas** in DB2 Metadata Explorer, and then click **Migrate Data**. You can also migrate data for individual objects or categories of objects: Right-click the object or its parent folder; select the **Migrate Data** option.
72
55
73
-
- Before performing data migration on the server side, ensure:
74
-
75
-
1. The SSMA for DB2 Extension Pack is installed on the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)].
76
-
77
-
2. The SQL Server Agent service is running on the instance of SQL Server.
78
-
79
-
- For performing **Server Side Data Migration**, select the **Server Side Data Migration Engine** option in the **Project Settings** dialog box.
80
-
81
-
4. Right-click **Schemas** in DB2 Metadata Explorer, and then click **Migrate Data**. You can also migrate data for individual objects or categories of objects: Right-click the object or its parent folder; select the **Migrate Data** option.
82
-
83
-
> [!NOTE]
84
-
> If the SSMA for DB2 Extension Pack is not installed on the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], and if **Server Side Data Migration Engine** is selected, then while migrating the data to the target database, the following error is encountered: 'SSMA Data Migration components were not found on SQL Server, server-side data migration will not be possible. Please check if Extension Pack is installed correctly'. Click **Cancel** to terminate the data migration.
85
56
86
57
5. In the **Connect to DB2** dialog box, enter the connection credentials, and then click **Connect**. For more information on connecting to DB2, see [Connecting to DB2 Database (DB2ToSQL)](../../ssma/db2/connecting-to-db2-database-db2tosql.md)
87
58
88
59
For connecting to the target database [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], enter the connection credentials in the **Connect to SQL Server** dialog box, and click **Connect**. For more information on connecting to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], see [Connecting to SQL Server](./connecting-to-sql-server-db2tosql.md)
89
60
90
61
Messages will appear in the **Output** pane. When the migration is complete, the **Data Migration Report** appears. If any data did not migrate, click the row that contains the errors, and then click **Details**. When you are finished with the report, click **Close**. For more information on Data Migration Report, see [Data Migration Report (SSMA Common)](../sybase/data-migration-report-sybasetosql.md)
91
62
92
-
> [!NOTE]
93
-
> When SQL Express edition is used as the target database, only client side data migration is allowed and server side data migration is not supported.
63
+
94
64
95
65
## See Also
96
66
[Migrating DB2 Data into SQL Server (DB2ToSQL)](../../ssma/db2/migrating-db2-data-into-sql-server-db2tosql.md)
0 commit comments