2013-07-06 57 views
3

試圖建立在SQL Server 2008 R2中的新圖時,我收到此錯誤:得到錯誤,而在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.Mic rosoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(Urn origUrn,DocumentType editorType,DocumentOptions aeOptions,IManagedConnection con,String fileName)
at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ISqlVirtualProject.CreateDesigner(甕origUrn,DocumentType editorType,DocumentOptions aeOptions,IManagedConnection CON,字符串文件名)
在Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateDesigner(DocumentType editorType,DocumentOptions aeOptions,甕parentUrn,IManagedConnection MC,字符串文件名)
at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDocumentMenuItem.CreateDesignerWindow(IManagedConnection mc,DocumentOptions options)

請幫我解決這個問題。

+0

聽起來像您的安裝已損壞 - 您是否可以嘗試在該機器上修復/重新安裝SQL Server 2008 R2? –

回答

0

這個問題似乎與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文件\微軟共享\可視化數據庫工具\ dsref80.dll

0

在我的情況下,問題在於我連接到另一臺服務器上的SQL Server 2012數據庫,而我的機器有SQL Server 2008 R2。安裝SQL Management Studio 2012解決了這個問題。