English 中文(简体)
Migrate SQL Server database to SQL Azure
原标题:

What s the best way to move a normal SQL server database to SQL Azure? Is it right that you can t restore from a backup file? The only way I ve found so far is to script the database (and its data) and run those scripts on the SQL Azure database but this is slow when you have lots of data.

最佳回答

Use the SQL Azure Migration Wizard if running SQL 2008: http://sqlazuremw.codeplex.com/

For older versions the best thing I ve seen is to either first upgrade to 2008 then port, or (unfortunately) to port the data using scripts as you ve suggested. If you have to do so, might I suggest SubSonic for generating your scripts?

问题回答
  1. Patch SQL Management Studio 2014 with the latest patches
  2. Connect to your onsite sql server
  3. Right click Database > Tasks > Deploy Database to Windows Azure SQL
  4. DONE!

Thank you:

http://blogs.msdn.com/b/brunoterkaly/archive/2013/09/26/migrating-an-on-premises-sql-server-2012-database-to-windows-azure-sql-database.aspx

Be warned, backup your local copy before attempting SQLAzureMW. If the BCP entries aren t just right, it will target your local DB instead of Azure. Just recently had SQLAzureMW v3.3.9 successfully create tables on Azure, but (re)load the data (rows) in the source (local) DB.

Use:

SqlServer DataBase > Task > ExportData > Source > Destination

All Done..

Use Microsoft Data migration assistant tool which can be downloaded from here. https://www.microsoft.com/en-us/download/details.aspx?id=53595

First you have to install it. By using the Azure portal create new SQL database.Now you can deploy your local SQL database into Azure SQL database. If you have some warnings at the end of the migration process please ignore it.





相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签