无法生成的SQL Azure数据库的脚本:"充分利用对象的列表:无法" [英] Failed to generate scripts for Sql Azure database: "Getting the list of objects from : failed"

查看:238
本文介绍了无法生成的SQL Azure数据库的脚本:"充分利用对象的列表:无法"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照 http://msdn.microsoft.com/en-us/库/ ee621790.aspx说明并收到以下错误:


  

充分利用'MYDBNAME'对象的列表。失败


  
  

Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException:无法为此请求检索数据。 ---> Microsoft.SqlServer.Management.Sdk.Sfc.InvalidVersionEnumeratorException:操作不支持11.0版本SqlAzureDatabase。在Microsoft.SqlServer.Management.Smo.XmlReadDoc.LoadFile(大会一,字符串strFile)在Microsoft.SqlServer.Management.Smo.SqlObject.LoadInitData(字符串的文件,ServerVersion版本,DatabaseEngineType databaseEngineType)在Microsoft.SqlServer.Management.Sdk。 Sfc.ObjectCache.LoadElement(ObjectLoadInfo OLI,ServerVersion版本,DatabaseEngineType databaseEngineType)在Microsoft.SqlServer.Management.Sdk.Sfc.ObjectCache.GetElement(ObjectLoadInfo OLI,ServerVersion版本,DatabaseEngineType databaseEngineType)在Microsoft.SqlServer.Management.Sdk.Sfc。 ObjectCache.GetAllElements(金塔金塔,ServerVersion版本,DatabaseEngineType databaseEngineType,对象CI)在Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetObjectsFromCache(金塔金塔,对象CI)在Microsoft.SqlServer.Management.Sdk.Sfc.Environment。的GetData(请求REQ,对象CI)在Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(对象connectionInfo,请求要求)在Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(对象connectionInfo,请求请求) ---内部异常堆栈跟踪的结尾---在Microsoft.SqlServer.Management.SqlScriptPublish.GeneratePublishPage.worker_DoWork(对象发件人,DoWorkEventArgs E)在System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs E)在System.ComponentModel.BackgroundWorker。 WorkerThreadStart(Object参数)


如何获得Azure数据库备份或SQL脚本?

更新:
Azure的DB:SQL服务器11.0.2065;
SQL管理工作室:11.0.2100.60

更新2:

SQL Azure迁移向导报告:


  

Microsoft.SqlServer.Management.Sdk.Sfc


  
  

无法为此请求检索数据。


  
  

附加信息:


  
  

不支持的操作在11.0版SqlAzureDatabase。 (Microsoft.SqlServer.SqlEnum)


同样的<一个href=\"http://social.msdn.microsoft.com/Forums/en-US/ssdsgetstarted/thread/906b4e3e-3db4-460c-bb6a-bf57e5f01e3c/\"相对=nofollow>此处。

排序规则是Cyrillic_General_CI_AS。如何更改排序规则的数据库,使脚本?

更新3:

同样的错误,而使用使得数据层应用程序的出口一>:


  

..不支持在11.0版SqlAzureDatabase操作。



解决方案

在SqlServer的管理Studio 2012中;

在DB和任务右键>部署数据库到SQL Azure的,但选择本地服务器作为目标。它会得到蔚蓝的复制到本地。然后你就可以生成从本地服务器脚本。我刚刚发现这个方法,为我工作。

I follow http://msdn.microsoft.com/en-us/library/ee621790.aspx instructions and on get the following error:

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)

How to get azure database backup or sql scripts?

UPDATE: Azure db: SQL Server 11.0.2065; Sql management studio: 11.0.2100.60

UPDATE 2:

SQL Azure Migration Wizard reports:

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)

The same here.

The collation is Cyrillic_General_CI_AS. How to change collation for the db to make scripts?

UPDATE 3:

The same error while making export of Data-Tier Application using this guide:

..Operation not supported on version 11.0 SqlAzureDatabase.

解决方案

In SqlServer Management Studio 2012;

Right click on the DB and Tasks > Deploy Database to Sql Azure but select your local server as target. It will get copy of azure to your local. And then you can generate scripts from your local server. I just found this method, worked for me.

这篇关于无法生成的SQL Azure数据库的脚本:&QUOT;充分利用对象的列表:无法&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆