T-SQL执行无需调试即可结束 [英] T-SQL execution ended without debugging

查看:123
本文介绍了T-SQL执行无需调试即可结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我使用的是在Win Server 2003上运行的sql server 2005,简单的工作组-没有域.
我想使用VS(2005),我在我的VS上运行在便携式计算机上,仅执行程序代码,而不使用CLR调试,因此,如果仅调试tsql,则不需要在服务器上使用远程调试器.
当我尝试执行程序时,它给出了臭名昭著的错误消息.

< T-SQL的执行无需调试即可结束.您可能没有足够的权限来调试","

Sql服务器正在NETWORK SERVICE帐户下运行.我已经在笔记本电脑(winxp)和server2003上创建了具有相同名称和密码的用户帐户,因此我可以通过笔记本电脑上的Sql Server Management Studio访问Sql Server.

VS中的连接使用Windows身份验证只要我不尝试逐步执行过程代码,一切都很好.

我尝试通过配置sql服务器以通过sa帐户使用sql身份验证来解决此问题.同样,一切正常,但是调试却给出了错误.

出于绝望,我尝试将服务器上使用的用户名im显式添加到sysadmin.然后,网络服务帐户也被授予sysadmin.不高兴.

我还没有使用防火墙.

有人知道这是什么问题吗?

谢谢!
Nik


>

Hi All!

Im using a sql server 2005 running on win server 2003, simple workgroup - no domain.
I'd like like to use VS (2005), which i run on my laptop, to just step through the procedures code, Im not using CLR debugging, therefore remote debugger is not required on the server if im just debugging tsql.
When I try to step through a procedure, it gives the notorious error message.

"T-SQL execution ended without debugging. You may not have sufficient permissions to debug"

Sql server is running under NETWORK SERVICE account. I have created user accounts on both my laptop(winxp) and server2003 with same names and passwords, so I can access the Sql Server though Sql server management studio on my laptop.

The connection in VS is using windows authentication and everythings fine as long as I dont try to step through procedure code.

I tried resolve the problem by configuring sql server to use sql authetication with sa account. Again, everything connects fine, but debugging gives the error.

Out of desperation I tried explicitly adding the user name im using on the server to sysadmin. Then the network service account was granted sysadmin as well. No joy.

Also, Im not using a firewall.

Does anyone know what the problem here is?

Thank you!
Nik
 

推荐答案

您好,

此处的关键问题是您在工作组中工作.

使用哪种凭据创建与服务器的连接都无关紧要. SQL调试引擎将始终以登录用户的身份联系SQL Server.

这可能有效:

1,在两台计算机上以完全相同的名称创建一个用户.例如SQLDBG

2,确保用户在每台计算机上使用的密码完全相同.

3,在SQL Server上,使SQLDBG成为计算机管理员. (这对于在SQL2005上进行任何SQL调试都是必需的)

4,使用SQLDBG登录到VS计算机并尝试进行调试.

失败的是,Visual Studio附带了SQL Express.也许您可以尝试对该实例进行本地调试.

希望这会有所帮助.

Richard Cook

Visual Studio调试器小组.


这篇关于T-SQL执行无需调试即可结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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