SSMS 2012でSQLテキストエディタを開く際に奇妙なエラーが発生しました。エラーは、新しいクエリ、ストアドプロシージャの変更、選択上位1000行、スクリプトエディタを開くアクション。ツール/オプション/テキストエディタ/ [任意の言語]に入力すると、プログラムが途切れ、Windowsエラーが表示されます。SQL Server 2012 Management StudioでSQLテキストエディタを開こうとしたときにエラーが発生しました
これは奇妙なエラーです。私はエラーの詳細をコピーしましたが、それは私には何の意味もありません。
===================================
内部エラーが発生しました。追加情報: ''。 (mscorlib)
------------------------------プログラム所在地:
System.ComponentModelで。 System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager、ComposablePartでComposition.Hosting.ImportEngine.InPrerequisiteLoop() でSystem.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager、ComposablePart部)パート、ブール型shouldTrackImports)で System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImports(ComposablePart System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(のCatalogPart 一部で System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine エンジン、ComposablePart部品、ExportDefinition定義)、ExportDefinition輸出、ブールisSharedPartで一部) ) System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()System.ComponentModel.Composition.Primitives.Export.get_Value()で でSystem.ComponentModel.Composition.ExportServices.GetCastedExportedValue [T](AT
エクスポート エクスポート) にSystem.ComponentModel.Composition.Hosting.ExportP System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueT ATで System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue [T](文字列 contractName)でrovider.GetExportedValueCore [T](文字列 contractName、ImportCardinalityカーディナリティ) マイクロソフトの Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.SetSite(オブジェクト pUnkSite)で Microsoft.VisualStudio.Editor.Implementation.VsDocDataAdapter.SetSite(オブジェクト pUnkSite)でMicrosoft.VisualStudio.ComponentModelHost.ComponentModel.GetServiceT .SqlServer.Management.UI.VSIntegration.ShellTextBuffer.SetSite(Object Microsoft.SqlServerでMicrosoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptEditorControl.Initialize(オブジェクト SP)で Microsoft.SqlServer.Management.UI.VSIntegration.ShellTextEditorControl.CreateAndInitTextBuffer(オブジェクト SP)でサービス・プロバイダ) .Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl.Initialize(オブジェクト sp)( )Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl。 Microsoft.SqlServer.Management.UI.VSIntegration.Editorsで Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl.CreateInstance(オブジェクト サービス・プロバイダ、ブールwithEncoding、文字列のあだ名)で(オブジェクト SP、文字列の愛称)を初期化します Microsoft.SqlServer.Management.UI.VSIntegration.Editors.EditorFactoryBase.Microsoft.VisualStudio.Shell.Interop.IVsEditorFactory.CreateEditorInstance(UInt32型 createFlags、文字列で.EditorFactorySql.CreateEditorInstance(IServiceProvider サービス・プロバイダ、ブールstoreActiveConnIfNeeded、文字列モニカ)
モニカ、String physicalView、IVsHierarchy 階層、UInt32 itemId、IntPtr existingDocData、IntPtr & docViewIntPtr、のIntPtr & docDataIntPtr、文字列&キャプション、のGUID & cmdUIGuid、 System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(のInt32 のerrorCodeでのInt32 &結果)、 Microsoft.SqlServer.Management.UIでのIntPtrのerrorInfo)。 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateNewScript(文字列 strFullPathToScriptでVSIntegration.Editors.ScriptFactory.CreateNewScript(文字列 strFullPathToScript、IVsProject projectToAddScriptTo、 UIConnectionGroupInfo connectionInfoList、のIDbConnection liveCon、 ストリングルート名)、IVsEx マイクロソフトの Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateNewScript(文字列 strFullPathToScript、UIConnectionGroupInfo connectionInfoList、 のIDbConnection liveCon、文字列fileRoot)でternalFilesManager extFileMgr、 UIConnectionGroupInfo connectionInfoList、のIDbConnection liveCon、 文字列ルート名)。 Microsoft.SqlServerでMicrosoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NewQueryMenuHandler.Invoke() でSqlServer.Management.UI.VSIntegration.Editors.ScriptFactory.CreateNewScript(文字列 strFullPathToScript、UIConnectionInfoのCI、のIDbConnection liveCon)。 Object.close(Object 01)送信者、EventArgs引数)
私はSSMSを修復しようとしましたが、私はこれをどこで行うことができるのかわかりません。 私はでMicrosoft SQL Server Management Studioを見つけることができない "プログラムと機能"
私はchkdskを実行すると、Windowsがファイルシステムをスキャンした
私のSSDドライブに何の不良セクタはありません何の問題も見つけられませんでした。さらに アクションは必要ありません。
131449855 KB合計ディスク容量。 54907808 KB in 218559ファイル。 61261のインデックスで137392 KB。 不良セクタが0 KBです。 392375 KBがシステムで使用中です。 65536 KBがログファイルによって占有されています。 76012280 KBのディスクが使用可能です。あなたがコントロールパネルから SSMSは、完全なアンインストールかかわら/再アンインストールはちょうどあなたが潜在的に悪いに戻ってファイルをコピーしていないことを保証するために、おそらく良いアイデアであるとき
4096 bytes in each allocation unit. 32862463 total allocation units on disk. 19003070 allocation units available on disk.
コントロールパネルを使用してSSMSをアンインストールするときに修復操作が利用できますが、完全なアンインストール/再インストールはおそらくファイルを潜在的に悪いセクタをローカルディスク上に作成します。 [こちらは](https://www.techwalla.com/articles/how-to-repair-sql-server-management-studio)の手順を順を追って説明する記事。 –
@ JohnEisbrener私はWindows 10を持っており、SQL Server Management Studioは「プログラムと機能」にインストールされたプログラムではありません。 –
私は以下の回答に私の応答を移動したので、スクリーンショットも含めることができました。 –