Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start the Transact-SQL debugger, could not connect to the database engine instance

I have been trying to run debugging within SQl server management studio and for some reason the debugger has just stopped working.

This is the message I get:

Unable to start the Transact-SQL debugger, could not connect to the database engine instance 'server-sql'. Make sure you have enabled the debugging firewall exceptions and are using a login that is a member of the sysadmin fixed server role. The RPC server is unavailable.

Before this I get two messages, one requesting firewall permissions and the next says 'usage' with some text that makes little sense.

I have looked at the other similar answers on there for the same message which suggest adding the login as a sysadmin but that is already set. I also tried adding sysadmin to another account but that also didn't work.

like image 930
connersz Avatar asked Jun 30 '14 13:06

connersz


3 Answers

In the end I was able to start it by right clicking and selecting run as administrator.

like image 61
connersz Avatar answered Oct 11 '22 19:10

connersz


This happened to me and I could not find the resolution anywhere. My firewall is disabled so I knew that couldn't be the issue.

According to Microsoft: Configure firewall rules before running the TSQL Debugger:

The server needs to communicate back to the client via RPC. The account under which SQL Server service is running should have authenticate permissions to the client.

We had a group policy that was preventing this:

Deny access to this computer from the network (Local account, Guests)

In order to resolve the issue, I had to add the SQL Server service account to the local group "Remote Desktop Users" on my desktop. Hope this helps someone else resolve this frustrating issue.

like image 36
Frank Robinson Avatar answered Oct 11 '22 17:10

Frank Robinson


I encountered this issue while connected to SQL using a SQL Server Authenticated user. Once I tried using a Windows Authenticated user I was able to debug without issue. That user must also be assigned the sysadmin role.

like image 33
jRosenholm Avatar answered Oct 11 '22 19:10

jRosenholm