将 SQL Server 数据库迁移到 SQL Azure

发布于 2024-08-15 18:23:47 字数 128 浏览 4 评论 0原文

将普通 SQL Server 数据库迁移到 SQL Azure 的最佳方法是什么?是不是不能从备份文件恢复?到目前为止,我发现的唯一方法是编写数据库(及其数据)脚本并在 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

っ〆星空下的拥抱 2024-08-22 18:23:47

如果运行 SQL 2008,请使用 SQL Azure 迁移向导: http://sqlazuremw.codeplex.com/

对于旧版本我见过的最好的事情是要么首先升级到 2008 然后移植,或者(不幸的是)按照您的建议使用脚本移植数据。如果您必须这样做,我可以建议 SubSonic 来生成脚本吗?

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?

捎一片雪花 2024-08-22 18:23:47
  1. 使用最新补丁修补 SQL Management Studio 2014
  2. 连接到您的现场 sql 服务器
  3. 右键单击​​数据库 >任务>将数据库部署到 Windows Azure SQL
  4. 完成!

谢谢:

http://blogs.msdn.com/b/brunoterkaly/archive/2013/09/26/migration-an-on-premises-sql-server-2012-数据库到windows-azure-sql-database.aspx

  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

酒中人 2024-08-22 18:23:47

请注意,在尝试 SQLAzureMW 之前请备份本地副本。如果 BCP 条目不正确,它将针对您的本地数据库而不是 Azure。最近,SQLAzureMW v3.3.9 成功在 Azure 上创建表,但(重新)加载源(本地)数据库中的数据(行)。

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.

心病无药医 2024-08-22 18:23:47

使用:

SqlServer数据库>任务>导出数据>来源>>目的地

全部完成..

Use:

SqlServer DataBase > Task > ExportData > Source > Destination

All Done..

美煞众生 2024-08-22 18:23:47

使用 Microsoft 数据迁移助手工具,可以从此处下载。 https://www.microsoft.com/en-us/ download/details.aspx?id=53595

首先您必须安装它。通过使用 Azure 门户创建新的 SQL 数据库。现在您可以将本地 SQL 数据库部署到 Azure SQL 数据库中。如果您在迁移过程结束时出现一些警告,请忽略它。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文