I get this error while trying to debug a very simple script:


Cannot execute script.


Object reference not set to an instance of an object. (Microsoft.SqlServer.Smo)

Program Location:

   at Microsoft.SqlServer.Management.Smo.Server.get_IsSingleUser()
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl.DebugWrapper.Start()
   at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEditorControl.OnDebugScript(Object sender, EventArgs a)

other than this, everything else works just fine. Any idea how to solve this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.