问题描述
我想打开一个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抛出MetadataStorageEngineException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!