| title | Getting Started with SSMA for DB2 (DB2ToSQL) | Microsoft Docs |
|---|---|
| ms.prod | sql |
| ms.custom | |
| ms.date | 01/19/2017 |
| ms.reviewer | |
| ms.technology | ssma |
| ms.topic | conceptual |
| ms.assetid | 48ca32fc-1830-4d1f-add7-480ba5ad02e8 |
| author | Shamikg |
| ms.author | Shamikg |
[!INCLUDEssNoVersion] Migration Assistant (SSMA) for DB2 lets you quickly convert DB2 database schemas to [!INCLUDEssNoVersion] schemas, upload the resulting schemas into [!INCLUDEssNoVersion] and migrate data from DB2 to [!INCLUDEssNoVersion].
This topic introduces the installation process, and then helps familiarize you with the SSMA user interface.
To use SSMA, you first must install the SSMA client program on a computer that can access both the source DB2 database and the target instance of [!INCLUDEssNoVersion]. DB2 OLEDB providers on the computer that is running [!INCLUDEssNoVersion]. These components support data migration and the emulation of DB2 system functions. For installation instructions, see Installing SSMA for DB2 (DB2ToSQL).
To start SSMA, click Start, point to All Programs, point to [!INCLUDEssNoVersion] Migration Assistant for DB2, and then click [!INCLUDEssNoVersion] Migration Assistant for DB2.
After SSMA is installed, you can use SSMA to migrate DB2 databases to [!INCLUDEssNoVersion]. It helps to become familiar with the SSMA user interface before you start. The following diagram shows the user interface for SSMA, including the metadata explorers, metadata, toolbars, output pane, and error list pane:
To start a migration, you must first create a new project. Then, you connect to an DB2 database. After a successful connection, DB2 schemas will appear in DB2 Metadata Explorer. You can then right-click objects in DB2 Metadata Explorer to perform tasks such as create reports that assess conversions to [!INCLUDEssNoVersion]. You can also perform these tasks by using the toolbars and menus.
You must also connect to an instance of [!INCLUDEssNoVersion]. After a successful connection, a hierarchy of [!INCLUDEssNoVersion] databases will appear in [!INCLUDEssNoVersion] Metadata Explorer. After you convert DB2 schemas to [!INCLUDEssNoVersion] schemas, select those converted schemas in [!INCLUDEssNoVersion] Metadata Explorer, and then synchronize the schemas with [!INCLUDEssNoVersion].
After you synchronize converted schemas with [!INCLUDEssNoVersion], you can return to DB2 Metadata Explorer and migrate data from DB2 schemas into [!INCLUDEssNoVersion] databases.
For more information about these tasks and how to perform them, see Migrating DB2 Databases to SQL Server (DB2ToSQL).
The following sections describe the features of the SSMA user interface.
SSMA contains two metadata explorers to browse and perform actions on DB2 and [!INCLUDEssNoVersion] databases.
DB2 Metadata Explorer shows information about DB2 schemas. By using DB2 Metadata Explorer, you can perform the following tasks:
-
Browse the objects in each schema.
-
Select objects for conversion, and then convert the objects to [!INCLUDEssNoVersion] syntax. For more information, see Converting DB2 Schemas (DB2ToSQL).
-
Select tables for data migration, and then migrate the data from those tables to [!INCLUDEssNoVersion]. For more information, see Migrating DB2 Databases to SQL Server (DB2ToSQL).
[!INCLUDEssNoVersion] Metadata Explorer shows information about an instance of [!INCLUDEssNoVersion]. When you connect to an instance of [!INCLUDEssNoVersion], SSMA retrieves metadata about that instance and stores it in the project file.
You can use [!INCLUDEssNoVersion] Metadata Explorer to select converted DB2 database objects, and then synchronize those objects with the instance of [!INCLUDEssNoVersion].
To the right of each metadata explorer are tabs that describe the selected object. For example, if you select a table in DB2 Metadata Explorer, six tabs will appear: Table, SQL, Type Mapping,Report, Properties, and Data. The Report tab contains information only after you create a report that contains the selected object. If you select a table in [!INCLUDEssNoVersion] Metadata Explorer, three tabs will appear: Table, SQL, and Data.
Most metadata settings are read-only. However, you can alter the following metadata:
-
In DB2 Metadata Explorer, you can alter procedures and type mappings. To convert the altered procedures and type mappings, make changes before you convert schemas.
-
In [!INCLUDEssNoVersion] Metadata Explorer, you can alter the [!INCLUDEtsql] for stored procedures. To see these changes in [!INCLUDEssNoVersion], make these changes before you load the schemas into [!INCLUDEssNoVersion].
Changes made in a metadata explorer are reflected in the project metadata, not in the source or target databases.
SSMA has two toolbars: a project toolbar and a migration toolbar.
The project toolbar contains buttons for working with projects, connecting to DB2, and connecting to [!INCLUDEssNoVersion]. These buttons resemble the commands on the File menu.
The following table shows the migration toolbar commands:
| Button | Function |
|---|---|
| Create Report | Converts the selected DB2 objects to [!INCLUDEssNoVersion] syntax, and then creates a report that shows how successful the conversion was. This command is disabled unless objects are selected in DB2 Metadata Explorer. |
| Convert Schema | Converts the selected DB2 objects to [!INCLUDEssNoVersion] objects. This command is disabled unless objects are selected in DB2 Metadata Explorer. |
| Migrate Data | Migrates data from the DB2 database to [!INCLUDEssNoVersion]. Before you run this command, you must convert the DB2 schemas to [!INCLUDEssNoVersion] schemas, and then load the objects into [!INCLUDEssNoVersion]. This command is disabled unless objects are selected in DB2 Metadata Explorer. |
| Stop | Stops the current process. |
The following table shows the SSMA menus.
| Menu | Description |
|---|---|
| File | Contains commands for working with projects, connecting to DB2, and connecting to [!INCLUDEssNoVersion]. |
| Edit | Contains commands for finding and working with text in the details pages, such as copying [!INCLUDEtsql] from the SQL details pane. Also contains the Manage Bookmarks option, where you will be able to see a list of existing bookmarks. You can use the buttons on the right side of the dialog to manage the bookmarks. |
| View | Contains the Synchronize Metadata Explorers command. That synchronizes the objects between DB2 Metadata Explorer and [!INCLUDEssNoVersion] Metadata Explorer. Also contains commands to show and hide the Output and Error List panes and an option Layouts to manage the Layouts. |
| Tools | Contains commands to create reports, and migrate objects and data. Also provides access to the Global Settings and Project Settings dialog boxes. |
| Help | Provides access to SSMA Help and to the About dialog box. |
The View menu provides commands to toggle the visibility of the Output pane and the Error List pane:
-
The output pane shows status messages from SSMA during object conversion, object synchronization, and data migration.
-
The Error List pane shows error, warning, and informational messages in a sortable list.
Migrating DB2 Data into SQL Server (DB2ToSQL)
User Interface Reference (DB2ToSQL)
