You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows Firewall rules must be configured to enable [!INCLUDE [tsql](../../includes/tsql-md.md)] debugging when connected to an instance of the [!INCLUDE [ssDE](../../includes/ssde-md.md)] that is running on a different computer than the [!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor.
The [!INCLUDE [tsql](../../includes/tsql-md.md)] debugger includes both server-side and client-side components. The server-side debugger components are installed with each instance of the Database Engine from [!INCLUDE [ssVersion2005](../../includes/ssversion2005-md.md)] Service Pack 2 (SP2) or later versions. The client-side debugger components are included:
35
-
36
-
- When you install the client-side tools from [!INCLUDE [sql2008-md](../../includes/sql2008-md.md)] or later versions
20
+
The [!INCLUDE [tsql](../../includes/tsql-md.md)] debugger includes both server-side and client-side components. The server-side debugger components are installed with each instance of the [!INCLUDE [ssdenoversion-md](../../includes/ssdenoversion-md.md)]. The client-side debugger components are included:
37
21
38
-
- When you install Microsoft Visual Studio 2010 or later versions
22
+
- When you install Microsoft Visual Studio 2019 or later versions
39
23
40
24
- When you install [!INCLUDE [ssBIDevStudioFull](../../includes/ssbidevstudiofull-md.md)] from the web download
41
25
42
-
There are no configuration requirements to run the [!INCLUDE [tsql](../../includes/tsql-md.md)] debugger when SQL Server Management Studio or [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] is running on the same computer as the instance of the [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)]. However, to run the [!INCLUDE [tsql](../../includes/tsql-md.md)] debugger when connected to a remote instance of the [!INCLUDE [ssDE](../../includes/ssde-md.md)], program and port rules in the Windows Firewall must be enabled on both computers. These rules may be created by [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] setup. If you get errors attempting to open a remote debugging session, ensure the following firewall rules are defined on your computer.
26
+
There are no configuration requirements to run the [!INCLUDE [tsql](../../includes/tsql-md.md)] debugger when [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] is running on the same computer as the instance of the [!INCLUDE [ssDEnoversion](../../includes/ssdenoversion-md.md)]. However, to run the [!INCLUDE [tsql](../../includes/tsql-md.md)] debugger when connected to a remote instance of the [!INCLUDE [ssDE](../../includes/ssde-md.md)], program and port rules in the Windows Firewall must be enabled on both computers. If you get errors attempting to open a remote debugging session, ensure the following firewall rules are defined on your computer.
43
27
44
28
Use the **Windows Firewall with Advanced Security** application to manage the firewall rules. In both [!INCLUDE [win7](../../includes/win7-md.md)] and [!INCLUDE [winserver2008r2](../../includes/winserver2008r2-md.md)], open **Control Panel**, open **Windows Firewall**, and select **Advanced settings**. In [!INCLUDE [winserver2008r2](../../includes/winserver2008r2-md.md)], you can also open **Service Manager**, expand **Configuration** in the left pane, and expand **Windows Firewall with Advanced Security**.
45
29
46
30
> [!CAUTION]
47
-
> Enabling rules in the Windows Firewall may expose your computer to security threats that the firewall is designed to block. Enabling rules for remote debugging unblocks the ports and programs listed in this topic.
31
+
> Enabling rules in the Windows Firewall can expose your computer to security threats that the firewall is designed to block. Enabling rules for remote debugging unblocks the ports and programs listed in this topic.
48
32
49
33
## Firewall rules on the server
50
34
@@ -56,7 +40,7 @@ On the computer that is running the instance of the [!INCLUDE [ssDE](../../inclu
56
40
57
41
1. In the **Rule Type** dialog, select **Program**, and then select **Next**.
58
42
59
-
1. In the **Program** dialog, select **This program path:** and enter the full path to `sqlservr.exe` for this instance. By default, `sqlservr.exe` is installed in `C:\Program Files\Microsoft SQL Server\MSSQL13.<InstanceName>\MSSQL\Binn`, where `<InstanceName>` is `MSSQLSERVER` for the default instance, and the instance name for any named instance.
43
+
1. In the **Program** dialog, select **This program path:** and enter the full path to `sqlservr.exe` for this instance. By default, `sqlservr.exe` is installed in `C:\Program Files\Microsoft SQL Server\MSSQL16.<InstanceName>\MSSQL\Binn`, where `<InstanceName>` is `MSSQLSERVER` for the default instance, and the instance name for any named instance.
60
44
61
45
1. In the **Action** dialog, select **Allow the connection**, and select **Next**.
62
46
@@ -70,7 +54,7 @@ On the computer that is running the instance of the [!INCLUDE [ssDE](../../inclu
70
54
71
55
1. Select **TCP** in the **Protocol type:** box, select **RPC Dynamic Ports** in the **Local port:** box, select **Apply**, and then select **OK**.
72
56
73
-
- Add an inbound program rule for `svchost.exe` to enable DCOM communications from remote debugger sessions.
57
+
- Add an inbound program rule for `svchost.exe` to enable Distributed Component Object Model (DCOM) communications from remote debugger sessions.
74
58
75
59
1. In **Windows Firewall with Advanced Security**, in the left pane, right-click **Inbound Rules**, and then select **New Rule** in the action pane.
76
60
@@ -94,7 +78,7 @@ On the computer that is running the instance of the [!INCLUDE [ssDE](../../inclu
94
78
95
79
## Firewall rules on the client
96
80
97
-
On the computer that is running the [!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor, the SQL Server setup or [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] setup may have configured the Windows Firewall to allow remote debugging.
81
+
On the computer that is running the [!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor, configure the Windows Firewall to allow remote debugging.
98
82
99
83
If you get errors attempting to open a remote debugging session, you can manually configure the program and port exceptions by using **Windows Firewall with Advanced Security** to configure firewall rules:
100
84
@@ -118,23 +102,21 @@ If you get errors attempting to open a remote debugging session, you can manuall
118
102
119
103
1. Select **TCP** in the **Protocol type:** box, select **RPC Endpoint Mapper** in the **Local port:** box, select **Apply**, and then select **OK**.
120
104
121
-
- Add a program entry for the application hosting the [!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor. If you need to open remote debugging sessions from both SQL Server Management Studio and[!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] on the same computer, you must add a program rule for both:
105
+
- Add a program entry for the application hosting the [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)][!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor. If you need to open remote debugging sessions from multiple installations of[!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] on the same computer, you must add a program rule for both:
122
106
123
107
1. In **Windows Firewall with Advanced Security**, in the left pane, right-click **Inbound Rules**, and then select **New Rule** in the action pane.
124
108
125
109
1. In the **Rule Type** dialog, select **Program**, and then select **Next**.
126
110
127
111
1. In the **Program** dialog, select **This program path:** and enter one of these three values.
128
112
129
-
- For SQL Server Management Studio, enter the full path to ssms.exe. By default, ssms.exe is installed in `C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\Management Studio`.
130
-
131
113
- For [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] enter the full path to `devenv.exe`:
132
114
133
-
1. By default, the `devenv.exe` for Visual Studio 2010 is in `C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE`.
115
+
1. By default, the `devenv.exe` for Visual Studio 2022 is in `C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE`.
134
116
135
-
1. By default, the `devenv.exe` for Visual Studio 2012 is in `C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE`.
117
+
1. By default, the `devenv.exe` for Visual Studio 2019 is in `C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE`.
136
118
137
-
1. You can find the path to ssms.exe from the shortcut you use to launch SQL Server Management Studio. You can find the path to `devenv.exe` from the shortcut you use to launch [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)]. Right-click the shortcut and select **Properties**. The executable and path are listed in the **Target** box.
119
+
1. You can find the path to `devenv.exe` from the shortcut you use to launch [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)]. Right-click the shortcut and select **Properties**. The executable and path are listed in the **Target** box.
138
120
139
121
1. In the **Action** dialog, select **Allow the connection**, and select **Next**.
140
122
@@ -152,18 +134,18 @@ If you get errors attempting to open a remote debugging session, you can manuall
152
134
153
135
All attempts to start the [!INCLUDE [tsql](../../includes/tsql-md.md)] debugger must also meet the following requirements:
154
136
155
-
-SQL Server Management Studio or [!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] must be running under a Windows account that is a member of the **sysadmin** fixed server role.
137
+
-[!INCLUDE [ssBIDevStudio](../../includes/ssbidevstudio-md.md)] must be running under a Windows account that is a member of the **sysadmin** fixed server role.
156
138
157
139
- The [!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor window must be connected by using either a Windows Authentication or [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] Authentication login that is a member of the **sysadmin** fixed server role.
158
140
159
-
- The [!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor window must be connected to an instance of the [!INCLUDE [ssDE](../../includes/ssde-md.md)] from [!INCLUDE [ssVersion2005](../../includes/ssversion2005-md.md)] Service Pack 2 (SP2) or later versions. You can't run the debugger when the Query Editor window is connected to an instance that is in single-user mode.
141
+
- The [!INCLUDE [ssDE](../../includes/ssde-md.md)] Query Editor window must be connected to an instance of the [!INCLUDE [ssdenoversion-md](../../includes/ssdenoversion-md.md)]. You can't run the debugger when the Query Editor window is connected to an instance that is in single-user mode.
160
142
161
143
- The server needs to communicate back to the client via RPC. The account under which SQL Server service is running must have authenticated permissions to the client.
0 commit comments