microsoftSQL Server database migration

circle-exclamation

Solution 1

  1. Download and install the Data Migration Assistantarrow-up-right (DMA) from Microsoft.

  2. Launch the DMA application.

  3. Click on the plus "+" sign to create a new migration.

  4. Select Migration and name the Project.

  5. Select the Source of your server type and the Target of your server type from the drop-down menu and leave the Migration scope to Schema and data. Click Create.

  1. Enter the local Server name and choose an Authentication type.

circle-exclamation
  1. Click Connect.

  2. Choose your database in the selection loaded and click Next.

!!KB4729
  1. Enter the target Server name and choose an Authentication type.

    Make sure you have sufficient rights and permission to perform this action.

  2. Click Connect.

  3. Choose your database in the selection loaded and click Next.

circle-exclamation
!!KB4730
  1. Validate if you have issues by scrolling down the schema objects list on the left. You can click on an item for more detail on the specific issue and if a fix is available.

circle-exclamation
  1. When all the issues are fixed or deselected, click Generate SQL script.

    !!KB4731
  2. Once the script has been generated, validate if there are any issues, then click Deploy schema.

    !!KB4732

circle-exclamation
  1. Once the Deployment results is done executing, validate if there are any issues, then click Migrate data.

    !!KB4734
  2. Click Start data migration. Note that the number of tables might be different depending on your version.

    !!KB4735
  3. Wait for the migration to complete. When done, you can close the Data Migration Assistant.

    !!KB4736
  4. You are now ready to create the new data source in Remote Desktop Managerarrow-up-right or update the Devolutions Server Consolearrow-up-right.


  1. Using Microsoft SQL Server Management Studio (SSMS).

  2. Connect to your source SQL Server database.

  3. Right-click on the database name (node) – Tasks – Export Data-tier Application….

  4. Follow the wizard steps.

  5. Using SSMS, connect to the destination SQL Server.

  6. Right-click on the Databases (node) – Import Data-tier Application….

  7. Follow the wizard steps.

  8. Only for Devolutions Server: In the case of a SQL data source, automatic detection already exists when exporting and the query is launched automatically, but not in Devolutions Server. Therefore, if you are migrating a Devolutions Server, you also need to run this query after the import: UPDATE dbo.ConnectionHistory SET Version = 0x0000000000000000; UPDATE dbo.DatabaseInfo SET ConnectionCacheID = NEWID(), IntelligentCacheID = NEWID();

  9. You are now ready to create the new data source in Remote Desktop Managerarrow-up-right or update the Devolutions Server Consolearrow-up-right.


Solution 3

circle-exclamation

  1. Using Microsoft SQL Server Management Studio (SSMS).

  2. Right-click on the database name (node)TasksDeploy Database to Microsoft Azure SQL Database.

  3. Follow the wizard steps.

  4. You are now ready to create the new data source in Remote Desktop Managerarrow-up-right or update the Devolutions Server Consolearrow-up-right.

Connect to Remote Desktop Manager

  1. Create a new data source in File – Data sources – Add a new data source.

  2. On first connect, you may receive the following error message. If so, click on Fix It.

circle-exclamation

Connect to Devolutions Server

Update the Host and Database name for the Devolutions Server Console in Server – Edit – Database.

!!KB4971


REFERENCES

Last updated