简体   繁体   English

进入存储过程 - 由用户取消

[英]Step into stored procedure - canceled by user

I am trying to debug a long stored procedure in Visual Studio 2008. I have followed all the steps on this link , but I still get the same error: 我试图在Visual Studio 2008中调试一个长存储过程。我已经按照此链接的所有步骤 ,但我仍然得到相同的错误:

'Canceled by user' and it never hits the breakpoint. '被用户取消'并且它永远不会到达断点。

Visual Studio 2008 and SQL Server 2005 are running on 2 different servers and domains although I can see the SQL Server from the PC running Visual Studio. Visual Studio 2008和SQL Server 2005在2个不同的服务器和域上运行,尽管我可以从运行Visual Studio的PC上看到SQL Server。

I think that you are already on the right track, as that article on sql team is exactly what I would have pointed you to. 我认为你已经走在了正确的轨道上,因为关于sql团队的文章正是我所指向的。 Can you verify that you've read and followed the instructions he points you at: 您能否确认您已阅读并遵循他指示的说明:

Setting Up SQL Debugging 设置SQL调试

Every single time that I've encountered that lame excuse for an error message, I've found it to be a configuration problem of one sort or another. 每次我遇到错误消息的蹩脚借口时,我发现它是一种或另一种配置问题。

在SQL Server中,执行sp_addsrvrolemember '[Domain]\\[ID]', 'sysadmin'将您自己添加为数据库的系统管理员。

a colleague just got the 'Canceled by user' when Stepping into a Stored Procedure. 当踏入存储过程时,一位同事刚刚获得了“用户取消”。 The solution in this case: 在这种情况下的解决方案:

Shift + right click to open Visual Studio as Administrator Shift +右键单击以管理员身份打开Visual Studio

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

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