简体   繁体   中英

Migration of SQL server database to Azure

I'm trying to migrate one of my database in my local environment to Azure from SQL server management studio, but i'm facing with the following exception.

Please let me know how to resolve this issue. Thanks

Steps I have followed:

  1. From SQL Server Management Studio, Database -> Tasks --> Deploy database to Windows Azure SQL Database
  2. I'm able to connect to the Azure SQL instance
  3. During the process i'm getting the following error, as in the snapshot.

在此处输入图片说明

PFB the snapshot of my local and azure SQL server instances, 在此处输入图片说明

  1. Right click on the DB you are trying to copy, select "Generate scripts..." to open the "generate and Publish Scripts" wizard.

  2. Click Next or "Choose Objects" from the navigation pane to the left. On the "Choose Objects" step you may want to select the specific tables/sprocs you want to copy, or you can just choose "Script entire database"

  3. On the next page, I recommend selecting the "Save to a New Query Window" option. Then click "Advanced" in the top right corner and scroll to the bottom of the "General" section. The last item in this section is "Type of data to script". You will probably want to change this to "Schema and data" if you want to include the data in your script.

  4. Click Next until it starts to generate the script. When the script is done, it will open a new query window with CREATE / INSERT statements and when you Execute, it will create a copy of your DB. HOWEVER, you will need to update the USE [MyDatabase] statement and you will need to change the "Available Databases" dropdown to the desired Database (i'm talking about the dropdown box above the Object Explorer)

You can use the following methods:

  • -dacpac

  • -In Visual Studio -> Tools - SQL Server - SQL Schema comparison & data comparison

Check in the settings windows - use incompatible platforms

You received that error because the version of SSMS you're using is old. Installing the latest version of SSMS will get things working better.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM