Groups | Blog | Home
all groups > visual studio .net debugging > december 2005 >

visual studio .net debugging : VS2005: SQL Debugging "T-SQL execution ended without debugging. You may not have sufficient permissions to debug"


Paul Tebbutt
12/21/2005 3:54:07 PM
Hi,

I'm trying to use VS2005 to debug a stored proc on a remote server (XP Pro
SP2 -> WS2003).
The Windows account under which I'm running VS2005 has the sysadmin role,
and this is the same account that's used for the data connection.

I had to make some DCOM changes to even get this far! (COM Security - Access
Permissions - Grant "Remote Access" permission to ANONYMOUS LOGON).

When I try to "Step Into Stored Procedure" I get the error message "T-SQL
execution ended without debugging. You may not have sufficient permissions
to debug".

Thanks,

Paul



v-garych NO[at]SPAM online.microsoft.com (
12/22/2005 3:46:11 AM
Hi Paul,

[quoted text, click to view]

To use the SQL debugging, the application account must be a member of the
sysadmin group in the target SQL Server being debugged, and the connection
account also must be a member of the sysadmin role in the target SQL
Server, please refer to the following MSDN documentation for details:

How to: Set SQL Server Permissions for Debugging
http://msdn2.microsoft.com/en-us/library/w1bhybwz.aspx


By the way, the Windows XP Service Pack 2 and Windows 2003 have enhanced
security features, remote debugging on Windows XP SP2 platforms requires
some additional steps to configure the Windows Firewall. I suggest you may
also take a look on the following doc:

How to: Set Up Remote Debugging
http://msdn2.microsoft.com/en-us/library/bt727f1t.aspx


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Paul Tebbutt
1/4/2006 3:03:04 PM
Hi Gary,

Thanks for your reply. I've only just got back into the office after the
holidays!

But I'm afraid those links didn't help :-(

Btw I'm trying to debug T-SQL on a remote SQL Server **2005** - does that
make a difference?



[quoted text, click to view]

Can I check - does "application account" mean the windows/domain account
that I'm logged on as?

I don't think it's a firewall problem because we're running corporate builds
and the Windows firewall is disabled on both client & server.
(i.e. when I click "Control Panel" -> "Windows Firewall" I get a message
saying that the service isn't running.)

To explain my situation - I am using a single domain logon (my own network
username).
This is the account I log onto Windows with, so it will be the account that
VS2005 is running under.
I am using this account (with Windows Authentication) for my Data Connection
to the remote SQL Server 2005.
This account has been added as a login to SQL Server, and has been granted
the sysadmin role.
(the account is also in the administrators group on both client & server)

But I'm still getting the "T-SQL execution ended without debugging. You may
not have sufficient permissions to debug" message when I try to "Step Into
Stored Procedure".

Do you have any other ideas? Are there any specific changes I need to make
in the SQL Server Surface Area Configuration Tool perhaps?
The server is a virtual machine (VMware) - does that make any difference?

Thanks in advance for any help!

Paul.

[quoted text, click to view]

v-garych NO[at]SPAM online.microsoft.com (
1/5/2006 10:04:43 AM
Hi Paul,

[quoted text, click to view]

yes, you are right.

[quoted text, click to view]

The server in a virtual machine shouldn't matter, I remote debug with a
virtual machine's SQL server 2005 in our local domain, it works as
expected. I think maybe there has some problem on the account setting in
your virtual machine, does it also join the single domain which your
working machine resides?

I suggest you may test with the *sa* account of that virtual machine's SQL
server 2005, you can use that sa account in the corresponding data
connection.


Thanks !

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Paul Tebbutt
1/5/2006 11:30:34 AM
Hi Gary,

SUCCESS! :-)

It was because the server was in a different domain. Once I moved the server
into the same domain as myself then T-SQL debugging started working just
fine.

Thanks for your help & advice!

[quoted text, click to view]

v-garych NO[at]SPAM online.microsoft.com (
1/6/2006 1:38:20 AM
That's great, Paul! I am glad to discuss this issue with you:)

Good Luck!


Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button