简体   繁体   English

是否可以在Azure中还原SQL Server数据库?

[英]Is it possible to restore a SQL Server database in Azure?

I have a backup of a SQL Server 2008 database. 我有一个SQL Server 2008数据库的备份。 I'd like to restore it as an Azure SQL Server database. 我想将其还原为Azure SQL Server数据库。 Is this possible? 这可能吗?

PS I've seen a couple of questions to this effect from 2014. Is it possible today? PS:从2014年开始,我已经看到了几个问题。今天有可能吗?

AFAIK, no it's not possible. AFAIK,不行。

The Unsupported in SQL Azure doco https://azure.microsoft.com/en-us/documentation/articles/sql-database-transact-sql-information/ directs you to BOL and RESTORE shows it's not available in SQL Azure. SQL Azure doco中的Unsupported https://azure.microsoft.com/zh-cn/documentation/articles/sql-database-transact-sql-information/将您定向到BOL,而RESTORE表明它在SQL Azure中不可用。

https://msdn.microsoft.com/en-us/library/ms186858.aspx https://msdn.microsoft.com/en-us/library/ms186858.aspx

Are you able to restore the backup to an instance of SQL 2008 on-premises/locally first? 您是否能够首先将备份还原到本地/本地SQL 2008实例? If so you can then use management studio to Export the data and schema as a BACPAC or DACPAC file (export data tier application), which can then be imported into an Azure database using the Import data tier application. 如果是这样,则可以使用Management Studio将数据和架构导出为BACPAC或DACPAC文件(导出数据层应用程序),然后可以使用导入数据层应用程序将其导入到Azure数据库中。 You can also use the Taks -> Generate Scripts option from the database node in the management studio, ensure you check on include schema and data - then the SQL files can be executed against your SQL Azure instance as well. 您还可以在Management Studio的数据库节点中使用Taks-> Generate Scripts选项,确保检查包含架构和数据-然后也可以针对SQL Azure实例执行SQL文件。

There are some features which aren't available in SQL Azure that are on the server product, but the import will tell you about those if there are any - things like FILESTREAM aren't supported in Azure. 服务器产品上的某些功能在SQL Azure中不可用,但是导入将告诉您是否有这些功能-Azure中不支持FILESTREAM之类的东西。 Here is the link to take you through steps to migrate from SQL server to SQL Azure - and here are the differences in supported features between the two. 这是指导您完成从SQL Server迁移到SQL Azure的步骤的链接,这是两者之间支持的功能之间的差异

I have some production databases in Azure and frequently download them as data tier apps, import them into a local instance of SQL Server to do some debugging or testing, its a painless process. 我在Azure中有一些生产数据库,经常将它们下载为数据层应用程序,将它们导入到SQL Server的本地实例中以进行一些调试或测试,这是一个轻松的过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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