sql-server - 无法从 SQL Azure 生成脚本

标签 sql-server azure-sql-database

我想在连接到 sql server R2 后生成 SQL Azure 数据库的脚本,但是当我这样做时它给了我错误。

> TITLE: Microsoft SQL Server Management Studio

Script failed for Server 'myserver'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Script+Server&LinkId=20476

------------------------------ ADDITIONAL INFORMATION:

Attempt to retrieve data for object failed for Server 'myserver'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1540+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attempt+to+retrieve+data+for+object+Server&LinkId=20476


Index was outside the bounds of the array. (Microsoft.SqlServer.Smo)

我像往常一样生成脚本,就像我们使用 SQL Server 数据库一样。

有什么特殊的方法来生成脚本吗?我的目标是将 SQL Azure 数据库备份到 Sql Server 数据库。请问有人可以帮我解决这个问题吗?

谢谢 阿伦。

最佳答案

安装Service Pack 1 SQL Server 2008 R2 对我有帮助。

还有类似的problem Denali CTP1,这表明此问题已在 Cumulative Update 5 中修复。 。

关于sql-server - 无法从 SQL Azure 生成脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7357507/

相关文章:

c# - 在分片和主数据库之间使用数据库名称进行跨数据库查询在带有分片的 sql azure 中不起作用

Azure SQL 数据库 : Can I share stored procedures between master DB and all DB's in the server?

SQL Server - 获取表的大致大小

sql - 如何创建 SELECT 查询 FROM "TABLE1 AND TABLE2"

sql-server - 想要从 txt 文件批量导入 SQL Server 2012 中的临时表

sql-server - 审计 SQL Azure

c# - Azure Fluent API 创建 SQL Server 时出错 - 缺少 x-ms-request-id header

sql-server - 遍历所有表并删除记录

sql - 复合主键/聚集索引、碎片、性能

azure - 错误 字符串后未闭合引号 & 窗口 azure