如何在没有CLR的SQL Server 2008中调试存储过程? [英] How to debug stored procedures in SQL server 2008 without CLR?

查看:137
本文介绍了如何在没有CLR的SQL Server 2008中调试存储过程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在SQL Server 2008管理工作室中调试存储过程?



我试图在SQL查询上放置一个断点,然后按开始调试,但是我得到调试无法在我的机器上启动的错误:

 调试不能在<机器名> ;. 

我不想使用CLR调试。如何调试存储过程?

解决方案

键入 exec YourStoredProcedure 。把断点放在旁边点击执行按钮旁的绿色(调试)箭头。调试器应该启动并打破你的断点。点击F11进入您的存储过程。
有关更多选项,请参阅调试菜单。



这是非常详细的博文: / $ / $ / $ / $ / $ / $ / $ / $ / $ b

How can I debug stored procedures in SQL Server 2008 management studio?

I am trying to put a break point on SQL query and then press start debugging but I get an error that debugging cannot be started on my machine:

Debug cannot be started at <machine name>. 

I don't want to use CLR debugging. How can I debug stored procedures?

解决方案

Type exec YourStoredProcedure. Put break point next to it. Hit green (debug) arrow next to execute button. Debugger should start and hit your break point. Hit F11 to step into your stored procedure. See debug menu for more options.

Here is very detailed blog post: T-SQL Debugger for SQL Server 2008

这篇关于如何在没有CLR的SQL Server 2008中调试存储过程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆