我是一名初学者,正在尝试在 Windows Azure 中设置我的第一个网站。我已经发布了它并在 Windows Azure 中制作了一个 Sql 数据库。
在我的本地虚拟机中,我有包含用户配置文件数据库的 SQL 管理工作室。有没有办法导出该数据并导入到 Azure?
最佳答案
您可以直接从 SSMS 部署它。右键单击“对象资源管理器” Pane 中的数据库,选择“任务”->“将数据库部署到 Windows Azure SQL 数据库”命令:
在“部署设置”中单击“连接”按钮,然后连接到您的 Azure 服务器:
点击下一步:
查看摘要,然后单击“完成”:
成功部署后,连接到 SSMS 中的 Azure 服务器,您将看到您的数据库:
编辑:
如果在部署过程中遇到错误,请检查 Azure SQL 数据库中的限制列表:
Azure SQL Database General Guidelines and Limitations
Azure SQL Database Security Guidelines and Limitations
SQL Server Feature Limitations (Azure SQL Database)
此外,这里有一篇关于如何使用 SQL Server 数据工具将数据库迁移到 SQL Azure 的博客文章:Migrating a Database to SQL Azure using SSDT
希望这有帮助
关于asp.net - 将用户配置文件 SQL 数据库导入到 Windows Azure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24234642/