Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start T-SQL Debugging. Could not connect to computer ("*****")

When I try to debug an Stored Procedure using Microsoft SQL Server Management Studio, I encounter this error message: Unable to start T-SQL Debugging. Could not connect to computer ("*"). The dubugger cannot connect to the remote computer. This may be because the remote computer does not exist or a firewall may preventing communication to the remote computer. Please see help for assistance. I really appreciate any help.

like image 995
Nick Mehrdad Babaki Avatar asked Sep 10 '14 03:09

Nick Mehrdad Babaki


People also ask

How do I enable debugging in SSMS?

To debugging SP, go to database->Programmability->Stored Procedures-> right click the procedure you want to debug->select Debug Procedure.

How do I debug in SQL?

To debug a function, open the procedure calling that function and insert a breakpoint for the function you want to debug. Then, start debugging. Step through the code using the F11 key or Step Into, or press CTRL+F5 to move directly to the breakpoint. Press F11 or click Step Into to get inside the stored function.


1 Answers

SSMS needs to be able to find your SQL Server by DNS. When you connect to the DB in SSMS, you can use (local), but (local) does not resolve on your network so the debug program can not find it. Try connecting to localhost or your computer's name on the "Connect to Server" screen.

You should not have to run as administrator.

SSMS Login Screen

like image 73
Alien Technology Avatar answered Sep 19 '22 12:09

Alien Technology