我用的是SqlServer2005
我在AdventureWorks数据库中执行
SELECT SalesOrderID, OrderQTY
FROM Sales.SalesOrderDetail
WHERE ProductID = 712
ORDER BY OrderQTY DESC
这天查询语句后,在“查询”菜单上选择“显示估计的执行计划”显示这个查询的执行计划,不能显示执行计划,显示如图
当我再一次执行查询的时候,就出现错误
详细信息如下:
无法执行脚本。
===================================
未将对象引用设置到对象的实例。 (SQLEditors)
------------------------------
程序位置:
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ShowPlan.ShowPlanControl.Dispose(Boolean disposing)
在 System.ComponentModel.Component.Dispose()
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.TabPages.ShowPlanTabPage.Dispose(Boolean disposing)
在 System.ComponentModel.Component.Dispose()
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.DisplaySQLResultsControl.ClearTabs()
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.DisplaySQLResultsControl.PrepareTabs(Boolean bParseOnly)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.DisplaySQLResultsControl.PrepareForExecution(Boolean prepareForParse)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl.StandardPrepareBeforeExecute(QEStatusBarKnownStates newStatusBarState)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.SqlScriptEditorControl.StandardPrepareBeforeExecute(QEStatusBarKnownStates newStatusBarState)
在 Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl.OnExecScript(Object sender, EventArgs a)
请教高手怎么解决?