【问题标题】:getting error while creating new diagram in SQL Server 2008 R2/在 SQL Server 2008 R2 中创建新图表时出错/
【发布时间】:2013-07-06 10:50:51
【问题描述】:

尝试在 SQL Server 2008 R2 中创建新图表时出现此错误:

找不到指定的模块。
(MS 可视化数据库工具)

节目地点:

在 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
在 Microsoft.SqlServer.Management.UI.VSIntegration.NativeMethods.ThrowOnFailure(Int32 小时)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.CreateDesigner(Urn origUrn,DocumentType editorType,DocumentOptions aeOptions,IManagedConnection con,字符串文件名)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VirtualProject.Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn,DocumentType editorType,DocumentOptions aeOptions,IManagedConnection con,字符串文件名)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn,DocumentType editorType,DocumentOptions aeOptions,IManagedConnection con,字符串文件名)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateDesigner(DocumentType editorType,DocumentOptions aeOptions,Urn parentUrn,IManagedConnection mc,字符串文件名)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc,DocumentOptions 选项)

请帮我解决这个问题。

【问题讨论】:

  • 听起来您的安装已损坏 - 您可以尝试在该计算机上修复/重新安装 SQL Server 2008 R2 吗?

标签: sql-server sql-server-2008-r2


【解决方案1】:

问题似乎出在 Visual Database Tools DLL 上。

此 DLL 文件由 VS 2010 安装,但在 SQL Server 2012 安装期间,它将升级到工具的 SQL 2012 版本。此后,卸载并重新安装 SQL 或 VS 不会删除这个较新的 DLL 以允许安装旧版本,因此会留下这个烦人的问题。

我如何修复它是我设置了一个干净的虚拟机并安装了 VS 2010,然后从我的虚拟机中获取这个原始 DLL 并覆盖我的活动机器上的 DLL。就这么简单。

我认为删除此 DLL 文件然后进行 VS 2010 修复或卸载/重新安装也可以解决问题。

DLL 的目录和文件名(在 X64 机器上)是:C:\Program Files (x86)\Common Files\microsoft shared\Visual Database Tools\dsref80.dll

【讨论】:

    【解决方案2】:

    在我的情况下,问题是我连接到另一台服务器上的 SQL Server 2012 数据库,而我的机器有 SQL Server 2008 R2。安装 SQL Management Studio 2012 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2011-11-20
      • 2019-08-10
      • 2012-03-29
      • 1970-01-01
      • 2013-06-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多