2017-03-16 13 views
0

SSMS 2012でSQLテキストエディタを開く際に奇妙なエラーが発生しました。エラーは、新しいクエリ、ストアドプロシージャの変更、選択上位1000行、スクリプトエディタを開くアクション。ツール/オプション/テキストエディタ/ [任意の言語]に入力すると、プログラムが途切れ、Windowsエラーが表示されます。SQL Server 2012 Management StudioでSQLテキストエディタを開こうとしたときにエラーが発生しました

これは奇妙なエラーです。私はエラーの詳細をコピーしましたが、それは私には何の意味もありません。

This the weird error

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

内部エラーが発生しました。追加情報: ''。 (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を見つけることができない "プログラムと機能"

enter image description here

私は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. 
+0

コントロールパネルを使用してSSMSをアンインストールするときに修復操作が利用できますが、完全なアンインストール/再インストールはおそらくファイルを潜在的に悪いセクタをローカルディスク上に作成します。 [こちらは](https://www.techwalla.com/articles/how-to-repair-sql-server-management-studio)の手順を順を追って説明する記事。 –

+0

@ JohnEisbrener私はWindows 10を持っており、SQL Server Management Studioは「プログラムと機能」にインストールされたプログラムではありません。 –

+0

私は以下の回答に私の応答を移動したので、スクリーンショットも含めることができました。 –

答えて

0

修理操作が可能ですあなたのローカルドライブのセクタ。

Here'sこの手順を順を追って説明する記事。あなたのコメントパー

ダブルチェック、それは、Microsoft SQL Server Management Studioの下にリストされるべきであるあなたは、適切な場所を見ている:

enter image description here

それがないなら、あなたはすでにそれをアンインストールしました?私はそれがインストールされていない状態でSSMSをどのように動かすことができないのかよく分かりませんが、それがあなたの問題の根本的な原因かもしれません。その場合は、別のコピーをインストールし、ローカルドライブに対してCHKDSKオペレーションを実行して、ディスクが破損していないことを確認してください。

+0

Microsoft Sql Server Management Studioが「プログラムと機能」に含まれていないことを示す回答を更新しました。実際には、Windows 10とSQL Server 2012を使用して以来、私はそれを見たことがありません。私はchkdskで試しました。アドバイスありがとうございます。私はWindowsとSQL Serverを再インストールしようとします –

0

SQL Server Management Studioの更新版を使用することをお勧めします。 hereをダウンロードできます。この執筆時点では、最新バージョンは16.5.3です。マイクロソフトは通常、SSMSの月例アップデート/パッチをリリースしています。それをインストールしてみてください。 SSMS 16.5.3はSQL Server 2012と互換性があります。

関連する問題