简体   繁体   English

SQL Server 2005 SP 在远程主机上的 Visual Studio 2008 调试

[英]Visual Studio 2008 Debugging of SQL Server 2005 SP on Remote Host

I am using VS 2008 and trying to step into a stored procedure on a SQL Server 2005 database.我正在使用 VS 2008 并尝试进入 SQL Server 2005 数据库上的存储过程。 I bring up Server Explorer, double-click on the procedure.我调出服务器资源管理器,双击该程序。 It comes up in the text window. I set a break point in it, right click and select "Step into stored procedure".它出现在文本 window 中。我在其中设置了一个断点,右键单击和 select “进入存储过程”。 It comes back with "canceled by user".它返回“被用户取消”。 MSVSCOM.exe is running on the SQL Server host and I can connect to remote processes on SQL Server host. MSVSCOM.exe 在 SQL 服务器主机上运行,我可以连接到 SQL 服务器主机上的远程进程。 What's interesting about this is I can "Step Into a Stored Procedure" if I first attached to a remote process on the SQL Server Host.有趣的是,如果我首先连接到 SQL 服务器主机上的远程进程,我可以“进入存储过程”。 However, once that process is closed and/or I detach I get the infamous "Canceled by User" message.但是,一旦该进程关闭和/或我分离,我就会收到臭名昭著的“用户取消”消息。 I've found numerous postings on this (eg, 1 ), but no solid explanation of what's wrong.我发现了很多关于此的帖子(例如, 1 ),但没有对错误的可靠解释。

Anyone else encountered this issue?还有其他人遇到过这个问题吗?

I think this is by design.我认为这是设计使然。 It's the way the debugger works.这就是调试器的工作方式。 If you are debugging an unmanaged process on the same machine you also have to attach the process first.如果您在同一台机器上调试非托管进程,您还必须先附加该进程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM