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
Copy file name to clipboardExpand all lines: docs/database-engine/configure-windows/diagnostic-connection-for-database-administrators.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@ title: "Diagnostic Connection for Database Administrators"
3
3
description: "Find out about the dedicated administrator connection (DAC). View its restrictions, instructions on how to establish it, and examples demonstrating its use."
[!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] provides a special diagnostic connection for administrators when standard connections to the server aren't possible. This diagnostic connection allows an administrator to access [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] to execute diagnostic queries and troubleshoot problems even when [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] isn't responding to standard connection requests.
27
28
@@ -106,7 +107,7 @@ Although you can theoretically run any [!INCLUDE [tsql](../../includes/tsql-md.m
106
107
107
108
### Limitation in Azure SQL Database
108
109
109
-
When connecting to the [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)] with the DAC, you must also specify the database name in the connection string by using the `-d` option.
110
+
The DAC in Azure SQL Database is usually occupied by a backend process and is not user-accessible.
110
111
111
112
### Limitation in Azure SQL Managed Instance
112
113
@@ -122,12 +123,6 @@ sqlcmd -S contoso-server -U sa -P <StrongPassword> -A
122
123
123
124
The administrator can now execute queries to diagnose the problem and possibly terminate the unresponsive sessions.
124
125
125
-
A similar example connecting to [!INCLUDE [ssSDS](../../includes/sssds-md.md)] would use the following command including the `-d` parameter to specify the database:
126
-
127
-
```powershell
128
-
sqlcmd -S serverName.database.windows.net,1434 -U sa -P <StrongPassword> -d AdventureWorks
129
-
```
130
-
131
126
## Related content
132
127
133
128
-[Use sqlcmd with scripting variables](../../tools/sqlcmd/sqlcmd-use-scripting-variables.md)
0 commit comments