gpt4 book ai didi

azure - 无法为 Sql Azure 数据库生成脚本 : "Getting the list of objects from : failed"

转载 作者:行者123 更新时间:2023-12-04 05:30:21 32 4
gpt4 key购买 nike

我关注http://msdn.microsoft.com/en-us/library/ee621790.aspx说明并收到以下错误:

Getting the list of objects from 'MYDBNAME'. Failed

Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> Microsoft.SqlServer.Management.Sdk.Sfc.InvalidVersionEnumeratorException: Operation not supported on version 11.0 SqlAzureDatabase. at Microsoft.SqlServer.Management.Smo.XmlReadDoc.LoadFile(Assembly a, String strFile) at Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitData(String file, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.LoadElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetElement(ObjectLoadInfo oli, ServerVersion ver, DatabaseEngineType databaseEngineType) at Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetAllElements(Urn urn, ServerVersion ver, DatabaseEngineType databaseEngineType, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetObjectsFromCache(Urn urn, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request req, Object ci) at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object connectionInfo, Request request) at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object connectionInfo, Request request) --- End of inner exception stack trace --- at Microsoft.SqlServer.Management.SqlScriptPublish.GeneratePublishPage.worker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

如何获取azure数据库备份或sql脚本?

更新:Azure 数据库:SQL Server 11.0.2065;SQL管理工作室:11.0.2100.60

更新2:

SQL Azure 迁移向导报告:

Microsoft.SqlServer.Management.Sdk.Sfc

Failed to retrieve data for this request.

ADDITIONAL INFORMATION:

Operation not supported on version 11.0 SqlAzureDatabase. (Microsoft.SqlServer.SqlEnum)

同上here .

排序规则为 Cyrillic_General_CI_AS。如何更改数据库的排序规则以制作脚本?

更新3:

使用this guide导出数据层应用程序时出现同样的错误:

..Operation not supported on version 11.0 SqlAzureDatabase.

最佳答案

在 SqlServer Management Studio 2012 中;

右键单击数据库和任务 > 将数据库部署到 Sql Azure,但选择本地服务器作为目标。它将把 azure 的副本复制到您的本地。然后您可以从本地服务器生成脚本。我刚刚发现这个方法,对我有用。

关于azure - 无法为 Sql Azure 数据库生成脚本 : "Getting the list of objects from : failed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12712531/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com