开发者

Transfer SQL Server data to SQL Azure

I have a local database SQL Server 2008 Express and I have tables along with data in them. I want to export those schemas and data to SQL Azure database.

What I have tried in SQL Management Studio is to right-click database (contextual menu) and Tasks->Generate Scripts. But those SQL scripts were only the schema, stored procedures etc and no data is exported at all.

Then I have tried Tasks->Export Data, but there were no appropriate export types. I ha开发者_Python百科ve seen only Flat File dump and I think SQL Mgmt Studio 2008 R2 does not support importing flat files for SQL Azure.

Is there a nicer way to export data from SQL Server as sql scripts and execute them on a remote server without using any 3rd party tools?


I found that SQL Azure Migration Tool http://sqlazuremw.codeplex.com/

Very handy and useful. Worked for me.


In Tasks/Generate Scripts you can set Script Options/Script Data to be True, which should script out the data as well.

Not free, but SQL Data Compare will let you move data from on-premise to SQL Azure.


You can try SQL Server Import and Export Wizard.

For Detailed steps reg how to do it, check link.

I have worked with it already and it works fine for both Azure and on-premises.


An article that comprehensively explains available options:

http://parasdoshi.com/2011/06/20/solidq-journal-article-migrating-data-into-microsofts-data-platform-sql-azure/

Full disclosure: i work at SolidQ.com

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜