【发布时间】:2012-08-11 01:03:05
【问题描述】:
我正在使用 Management Studio 2012,但无法调试任何 SQL 代码。在我点击 Debug 按钮后,左侧没有任何绿色箭头,并且我的 SQL 对象都没有加载到内存中。
当我将光标移到我设置的断点上时收到此消息:The breakpoint will not currently be hit. Unable to bind SQL breakpoint at this time. Object containing the breakpoint not loaded.
我观看了一段 youtube 视频,演示了如何在 Studio 2012 中进行调试:http://www.youtube.com/watch?v=_jsFM_PUPgA&feature=relmfu
视频中的那个人在 4:30 左右编写了一个小 SQL 查询,在 SELECT 中放置了一个断点,然后单击 Debug。然后他会在编辑器的左上角得到一个绿色的小箭头,并且他的断点也被击中。我的不是。
这是我要调试的:
declare @count int = 0
while @count <> 10
begin
select @count
set @count = @count + 1
end
这很简单,调试应该可以工作。当然,我想稍后调试更复杂的存储过程..
有什么建议吗?
【问题讨论】:
-
您使用的是 Express 还是 Complete 哪个版本?
标签: sql-server sql-server-2012 ssms