Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The only way I could figure how to do it was create the schema on the localDB with code first and then manually change the database string to Azure and then run the code on Azure.. But that only gives me the schema and not the data..

Is there a better way like ? bacpac? Create a script instead? Or some other concept I am missing ?

share|improve this question
Doesn't this page describe a tool which handles importing/exporting of data: You're exporting data out of the local database, and importing it into the Azure DB – EdH May 17 '13 at 1:44
up vote 1 down vote accepted

Generating a script for just data from SQL Server Management Studio should work fine, but for a large amount of data you may have to save the script into a file and run it from the command line. This method will not allow you to synchronize changes made after the initial migration.

There are some excellent professional tools for dealing with this problem. I use Redgate's SQL Data Compare to synchronise data from a local database to SQL Azure, which can either generate a script of the differences or update the target database itself.

share|improve this answer
they removed the built in Data Compare that Visual Studio 2010 had.. So I guess this is similar.. Ill give it a try – punkouter May 17 '13 at 18:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.