Share via

running debugging tool

Shahin Mortazave 491 Reputation points
2022-03-14T14:39:22.477+00:00

Hi,

I am having a problem to connect from visual studio 2017 to a server that has SQL 2019.
When try to run a test query with debugger like: select * from mytable get this error:
182847-image.png

I mad sure that firewall on both servers is off and run the visual studio 2017 (SSDT) as Administrator account and this administrator account has also sysadmin right on the remote SQL server and also the SQL service on the remote SQL server also running as this Administrator account.

What I missing here?

SQL Server Integration Services
SQL Server | Other

3 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,676 Reputation points
    2022-03-15T02:23:25.953+00:00

    Hi @Shahin Mortazave ,

    Try to connect with localhost server name. If it does not work, try to use ip address instead.
    See this to get more details: https://learn.microsoft.com/en-us/visualstudio/debugger/unable-to-connect-to-the-microsoft-visual-studio-remote-debugging-monitor?view=vs-2019#dns
    This document also provides information about other errors that may be encountered and how to resolve them.
    Hope these will give you help.

    Best regards,
    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Erland Sommarskog 133.9K Reputation points MVP Volunteer Moderator
    2022-03-14T22:33:23.323+00:00

    I don't know exactly about the debugger in Visual Studio, but the old debugger in SSMS needed to have permissions on your local RPC port.

    Myself, I stopped using SQL debuggers soon twenty years ago. I found that I spent more time on getting it work than I gained in productivity. PRINT and SELECT works very well for me.

    0 comments No comments

  3. Sreeju Nair 12,761 Reputation points
    2022-03-14T15:00:56.25+00:00

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.