SQL Server Migration Assistant (SSMA) Team's Blog

How-to articles, tips-and-tricks, and guidelines for migrating from Oracle/Sybase/MySQL/Access to SQL Server and SQL Azure

How To Perform Incremental Data Migration Using SSMA

How To Perform Incremental Data Migration Using SSMA

  • Comments 1

SSMA provides an ability for you to customize sql statement used during data migration. This feature can be used in the following scenarios:

  1. Split migration of a large table into multiple iterations
  2. Migrate data partially based on specific criteria (e.g. migrate data only for a selected department)

To customize data migration sql statement:

  1. Modify project setting by navigating to Tools > Project Settings

 

  1. Click on General section then click on Migration

  1. Look for the setting for Extended Data Migration Options and change the value to Show

 

 The final setting should look like below:

  1. Select the table to be migrated (for example: HR.EMPLOYEES)

  1. Navigate to Data Migration tab on the upper right window pane

  1. Select Use custom select

  1. Modify the sql statement (for example: adding WHERE DEPARTMENT_ID=100) and click Apply

 

  1. Right click on the table to be migrated and select Migrate Data

Note: You must convert the schema and synchronize the schema to the SQL Server before migrating your data

  1. Enter credential to Oracle and SQL Server when prompted
  2. Review the data migration report and check the results in the SQL Server

 You may migrate additional data by repeating Step 7 -10 and updating the sql statement  each time (for example: WHERE DEPARTMENT_ID=101). Make sure to uncheck Truncate SQL Server table option if you want to append records to the destination table

 You can use the steps above to customize your data migration. Let us know what you think of the feature above.

 

  • Great article. Thank You very much.

Page 1 of 1 (1 items)
Leave a Comment
  • Please add 7 and 3 and type the answer here:
  • Post