Stephen Zhu

I have a problem in connecting Azure sql through sql server 2008 management studio

I can connect to my database correctly, but I cannot execute any sql commands.
The error message is:
TITLE: Microsoft SQL Server Management Studio
------------------------------

Cannot execute script.

------------------------------
ADDITIONAL INFORMATION:

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

------------------------------

with error stack:
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)

Does anybody have idea about this issue? Thank you.

Reply to This

Replies to This Discussion

Can you share your script? You may be using a feature that SQL Azure doesn't support.

Reply to This

Thank you for your reply. It seems that I have identified the problem.
I made a mistake that I pressed "debug" button to run my script. (e.g. select @@version)
I switched to "execute" and everything is fine now.

Reply to This

RSS

Latest Activity

tomnyivy and RUOFF RUTHER joined Azure User Group
11 minutes ago
RUOFF RUTHER added a discussion
Wind blows when the land gets unevenly heated up by the sun making the air just above the land, rise and expand. When the hot air above the land expands, its place is filled in by the heavier and cooler air above it. This makes the wind blow. So as…
1 hour ago
kiran.pvs, youmarco88 and Zhiyi Zhang joined Azure User Group
yesterday
youmarco88 added 5 blog posts
on Wednesday

© 2010   Created by Azure Admin.   Powered by .

Badges  |  Report an Issue  |  Terms of Service