Use DMA to migrate database schema

    Mentioned earlier, and when migrating databases with DMS, will ask the basic structure of the database (table structure, etc.) and turned out to be the same, if the database more, then it is very troublesome, and like view, stored procedure which did not way to migrate with DMS.


    So if this is the case, in fact, DMS is not very easy, but in fact, this is a reason, because Microsoft for database migration and the fact that more than one way DMS, DMS landing in China's time has not half a year, but another tool DMA in fact, a few years ago may GA, DMA is a very handy tool, he has a very important function is the ability to do assessments, such as prior to migration to SQL Server Azure SQL when you can take to do the assessment DMA migration, while he can also do the migration of the database, we can migrate the data before using DMS, first with the migration of database schema DMA, so the entire migration process will be smoother and more!


    First, you need to download the tools DMA, DMA Unlike DMS, he is not a SaaS platform, but a locally installed tool that can be downloaded to a local installation, as long as access to the source and target database can be on the network


    https://www.microsoft.com/en-us/download/details.aspx?id=53595


    The installation process does not go into details, to see how to use direct, Below is the DMA interface1.png


We can directly create a project, will see the creation of time can choose assessment, or migration, we acquire assessment to try it, here you can see the source can be directly selected AWS RDS

2.png


Compatibility DMA detects database because Azure SQL is a more lightweight database, some features are not supported, but also compatibility problems between different database versions of itself, it must first assess whether there is a similar situation

3.png


Here then is connected to the source reads information source repository

4.png


The number and size of the time depends on the source library of evaluation may be, where the amount of data is small, so the evaluation process quickly, we can break out of the screening report

5.png



Below will look at how to use the database schema DMA migration, while migration source library does not have the option AWS RDS, but we can choose SQL Server, the migration range of direct elections schema like, we can use the data migration DMS, DMA itself is not supports incremental migration, but DMS can, so the two can in fact be used in combination

6.png


Here select the source and target libraries

7.png


Here you can see, after reading the source library information, view, procedure which will generate the corresponding script, these scripts will then go up to the target database to perform

9.png


After deploy schema, you can see the results

10.png


After the target database, can already see the content of the primary key tables are also libraries and source are the same

11.png


After then, when DMS migration will not prompt any table does not exist, the primary key does not exist like the

12.png




Guess you like

Origin blog.51cto.com/mxyit/2465438