【发布时间】:2009-05-05 11:23:17
【问题描述】:
在 Visual Studio 2008 中让存储过程调试工作时遇到问题:当我开始调试时,我在输出窗口中收到这些成功消息,但实际的存储过程窗口并未显示。
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 调试
- 右键单击过程并选择“步入存储过程”
或者,我尝试打开程序并在那里设置断点,但没有帮助。
有什么想法吗?如前所述,连接存在,但 Visual Studio 无法打开程序代码。
【问题讨论】:
-
只是检查一下,这是一个CLR存储过程吗?
-
这个问题解决了吗?
-
不幸的是,我现在使用 Management Studio 作为调试器,而不是 Visual Studio:/
-
尝试一个新的解决方案只是为了测试数据库调试
-
你能告诉我们它是什么解决方案类型,以便我们尝试复制吗?
标签: sql visual-studio tsql debugging stored-procedures