Sql server 尝试打开SQL文本编辑器时发生SQL Server 2012 Management Studio错误

Sql server 尝试打开SQL文本编辑器时发生SQL Server 2012 Management Studio错误,sql-server,sql-server-2012,ssms,text-editor,Sql Server,Sql Server 2012,Ssms,Text Editor,在SSMS 2012中尝试打开SQL文本编辑器时出现了一个奇怪的错误。该错误会抛出任何选项,如新建查询、修改存储过程、选择前1000行、打开脚本编辑器的任何操作。当我进入Tools/Options/TextEditor/[Any language]时,程序中断并显示Windows错误 这是一个奇怪的错误。我复制了错误详细信息,但这对我来说毫无意义 =================================== 发生内部错误。其他信息:“”。(mscorlib) ------------

在SSMS 2012中尝试打开SQL文本编辑器时出现了一个奇怪的错误。该错误会抛出任何选项,如新建查询、修改存储过程、选择前1000行、打开脚本编辑器的任何操作。当我进入Tools/Options/TextEditor/[Any language]时,程序中断并显示Windows错误

这是一个奇怪的错误。我复制了错误详细信息,但这对我来说毫无意义

===================================

发生内部错误。其他信息:“”。(mscorlib)

------------------------------节目地点:

在 System.ComponentModel.Composition.Hosting.Importingine.InputRequisiteLoop() 在 System.ComponentModel.Composition.Hosting.ImportIne.TryStateMachine(零件管理器 部件经理,部件(部件)位于 System.ComponentModel.Composition.Hosting.Importingine.TryStatisfyImports(PartManager 零件管理器、组合零件、布尔值应跟踪导入)位于 System.ComponentModel.Composition.Hosting.Importingine.SatisfyImports(组件部分 部分)在 System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValuefromComponentPart(导入行 发动机,部件,出口定义)位于 System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart 零件,导出定义导出,布尔值isSharedPart)位于 System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore() 位于System.ComponentModel.Composition.Primitives.Export.get_Value()
在 System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](导出) 出口)在 System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[T](字符串 合同名称,重要性(基数)位于 System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[T](字符串 合约名称)在 System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueT 在 Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT 在 Microsoft.VisualStudio.Editor.Implementation.VsDocDataAdapter.SetSite(对象 朋克主义者)在 Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.SetSite(对象 朋克主义者)在 Microsoft.SqlServer.Management.UI.VSIntegration.ShellTextBuffer.SetSite(对象 服务提供商)在 Microsoft.SqlServer.Management.UI.VSIntegration.ShellTextEditorControl.CreateAndInitTextBuffer(对象 sp)在 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.ScriptEditorControl.Initialize(对象 sp)在 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.ScriptAndResultsEditorControl.Initialize(对象 sp)在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl.Initialize(对象 sp,字符串名字对象)位于 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.SqlScriptEditorControl.CreateInstance(对象 serviceProvider,Boolean withEncoding,字符串名字对象)位于 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.EditorFactorySql.CreateEditorInstance(IServiceProvider serviceProvider、Boolean StoreActiveConnifRequired、字符串名字对象)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.EditorFactoryBase.Microsoft.VisualStudio.Shell.Interop.IVsEditorFactory.CreateEditorInstance(UInt32 createFlags、字符串名字对象、字符串物理视图、IVsHierarchy 层次结构,UInt32项目ID,IntPtr existingDocData,IntPtr& docViewIntPtr、IntPtr和docDataIntPtr、字符串和标题、Guid& cmdUIGuid、Int32和结果)位于 System.Runtime.InteropServices.Marshal.ThroweExceptionForhr内部(Int32 错误代码,IntPtr errorInfo)位于 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.ScriptFactory.CreateNewScript(字符串 strFullPathToScript、IVsProject项目ToAddScript、, UIConnectionGroupInfo连接信息列表,IDbConnection liveCon, 字符串rootName)位于 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.ScriptFactory.CreateNewScript(字符串 strFullPathToScript,IVsExternalFilesManager extFileMgr, UIConnectionGroupInfo连接信息列表,IDbConnection liveCon, 字符串rootName)位于 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.ScriptFactory.CreateNewScript(字符串 strFullPathToScript,UIConnectionGroupInfo连接信息列表, IDbConnection liveCon,字符串fileRoot)位于 Microsoft.SqlServer.Management.UI.VSIntegration.Editor.ScriptFactory.CreateNewScript(字符串 strFullPathToScript、UIConnectionInfo ci、IDbConnection liveCon)位于 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NewQueryNumHandler.Invoke() 在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolsNuItemBase.MenuInvokedHandler(对象 发送方,事件args(args)

我试图修复SSM,但我不知道在哪里可以这样做。 在“程序和功能”中找不到Microsoft Sql Server Management Studio

我执行了chkdsk,ssd驱动器上没有坏扇区

Windows已扫描文件系统,未发现任何问题。不再 需要采取行动

磁盘总空间131449855 KB。218559个文件中的54907808 KB。 61261个索引中有137392 KB。 坏扇区中0 KB。 系统正在使用392375 KB。 日志文件占用65536 KB。磁盘上有76012280 KB可用空间

  4096 bytes in each allocation unit.   32862463 total allocation units on disk.   19003070 allocation units available on disk.
当您通过“控制面板”卸载SSM时,可以执行修复操作,不过完全卸载/重新安装可能是一个更好的主意,因为这样可以确保您不会将文件复制回本地驱动器上的潜在坏扇区

这篇文章将引导您完成整个过程

根据您的评论,请仔细检查您看到的位置是否正确,因为它应该列在Microsoft SQL Server Management Studio下:

如果它不在那里,您是否已经卸载了它?我