我有一个问题使存储过程调试在Visual Studio 2008中工作:当我开始调试时,我在输出窗口中获得这些成功消息,但实际的存储过程窗口不显示。调试MS SQL存储过程
Auto-attach to process '[1640] [SQL] stagsql' on machine 'stagsql' succeeded.
The thread 'stagsql [67]' (0xf80) has exited with code 0 (0x0).
The thread 'stagsql [67]' (0xf80) has exited with code 0 (0x0).
The thread 'stagsql [69]' (0x908) has exited with code 0 (0x0).
The thread 'stagsql [69]' (0x908) has exited with code 0 (0x0).
The thread 'stagsql [69]' (0x908) has exited with code 0 (0x0).
The thread 'stagsql [69]' (0x908) has exited with code 0 (0x0).
Running [dbo].[uspCGetXYZ] (@nLieferantId = 161616, @nStrukturId = -1, @nPageIndex = 1, @nPageSize = 16, @sSortColumn = arLangname, @nSortAscending = 1).
Visual Studio进入'调试模式',但程序根本没有显示出来。
的步骤我做:
-
在项目设置
- 启用SQL调试
- 打开服务器资源管理器的SQL连接 的连接
- 启用CLR/SQL debuggin
- 上单击鼠标右键程序和选中的“步入存储过程”
或者我试着打开程序然后在那里设置一个断点,它没有帮助。
任何想法?如上所述,连接在那里,但Visual Studio不能打开过程代码。
只是为了检查,这是一个CLR存储过程? – cjk 2009-05-05 12:33:07
不是,它是T-SQL – driAn 2009-05-05 19:43:30
这是为您解决的吗? – Wayne 2009-05-07 22:44:06