SqlMetadataStore.OpenStore抛出MetadataStorageEngineException [英] SqlMetadataStore.OpenStore throws MetadataStorageEngineException

查看:106
本文介绍了SqlMetadataStore.OpenStore抛出MetadataStorageEngineException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打开一个mdf文件(位于C:/ Program Files / Microsoft SQL Server / MSSQL10.SQLEXPRESS / MSSQL / DATA /下的SQL Server 2008 Express数据库),该文件尚未包含任何表。为此,我使用了SqlMetadataStore.OpenStore(MetadataFilePath),但
抛出了MetadataStorageEngineException类型的异常(包含InnerException System.Runtime.InteropServices.COMException)。因为异常消息是德语,我只能给你翻译它:"内存模块中的错误
操作:错误代码25035(HRESULT = ...)"。

I want to open a mdf file (a SQL Server 2008 Express database located under C:/Program Files/Microsoft SQL Server/MSSQL10.SQLEXPRESS/MSSQL/DATA/), which does not yet contain any tables. For this, I' using SqlMetadataStore.OpenStore(MetadataFilePath), but this throws an exception of type MetadataStorageEngineException (containing an InnerException System.Runtime.InteropServices.COMException). Because the exception message is german, I can give you only my translation of it: "Error during a memory module action: Error code 25035 (HRESULT = ...)".

你能帮我解决这个问题吗?如何在没有此异常的情况下在数据库中创建元数据存储?

Can you help me solving this problem? How can I create a metadata store in a database without having this exception?

推荐答案

SqlMetadataStore.OpenStore无法打开SQL Server 2008数据库文件 您是否安装了SQL Server管理工具? 如果是这样,您可以尝试使用通过MDF文件附加此数据库。

SqlMetadataStore.OpenStore can not open SQL Server 2008 database file.  Do you have SQL Server Management tools installed?  If so you can try to use Attach this database by the MDF file.

谢谢。


这篇关于SqlMetadataStore.OpenStore抛出MetadataStorageEngineException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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