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
description: Provides steps to troubleshoot connection issues and resolve other connectivity issues in Azure SQL Database, Fabric SQL database, or Azure SQL Managed Instance.
Copy file name to clipboardExpand all lines: docs/tools/configuration-manager/sql-server-browser-service.md
+25-17Lines changed: 25 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
-
title: "SQL Server Browser service"
2
+
title: "SQL Server Browser Service"
3
3
description: Learn how to use SQL Server Browser, a service that listens for requests for SQL Server resources and provides information about installed SQL Server instances.
4
4
author: markingmyname
5
5
ms.author: maghan
6
-
ms.reviewer: vanto
7
-
ms.date: 09/11/2024
6
+
ms.reviewer: vanto, randolphwest
7
+
ms.date: 02/13/2025
8
8
ms.service: sql
9
9
ms.subservice: tools-other
10
10
ms.topic: conceptual
@@ -56,7 +56,7 @@ Upon startup, the SQL Server Browser starts and claims UDP port 1434. SQL Server
56
56
57
57
When SQL Server clients request SQL Server resources, the client network library sends a UDP message to the server using port 1434. SQL Server Browser responds with the TCP/IP port or named pipe of the requested instance. The network library on the client application then completes the connection by sending a request to the server using the port or named pipe of the desired instance.
58
58
59
-
Learn how to start and stop the SQL Server Browser service in the article [Start, stop, pause, resume, restart SQL Server services](../../database-engine/configure-windows/start-stop-pause-resume-restart-sql-server-services.md).
59
+
For more information on starting and stopping the SQL Server Browser service, see [Start, stop, pause, resume, and restart SQL Server services](../../database-engine/configure-windows/start-stop-pause-resume-restart-sql-server-services.md).
60
60
61
61
## Use SQL Server Browser
62
62
@@ -65,33 +65,38 @@ If the SQL Server Browser service isn't running, you can still connect to the SQ
65
65
However, if the SQL Server Browser service isn't running, the following connections don't work:
66
66
67
67
- Any component that tries to connect to a named instance without fully specifying all the parameters (such as the TCP/IP port or named pipe).
68
-
- Any component that generates or passes server\instance information that other components could later use to reconnect.
68
+
69
+
- Any component that generates or passes `<server>\<instance>` information that other components could later use to reconnect.
70
+
69
71
- Connecting to a named instance without providing the port number or pipe.
70
-
-[DAC](../../database-engine/configure-windows/diagnostic-connection-for-database-administrators.md) to a named instance or the default instance if not using TCP/IP port 1433.
72
+
73
+
-[Diagnostic connection for database administrators](../../database-engine/configure-windows/diagnostic-connection-for-database-administrators.md) to a named instance or the default instance if not using TCP/IP port 1433.
74
+
71
75
- The Online Analytical Processing (OLAP) redirector service.
72
-
- Enumerating servers in [SQL Server Management Studio](../../ssms/menu-help/about-sql-server-management-studio.md) or [Azure Data Studio](/azure-data-studio/download-azure-data-studio).
73
76
74
-
Suppose you're using SQL Server in a client-server scenario (for example, when your application is accessing SQL Server across a network). If you stop or disable the SQL Server Browser service, you must assign a specific port number to each instance and write your client application code to use that port number. This approach has the following problems:
77
+
- Enumerating servers in [SQL Server Management Studio](../../ssms/menu-help/about-sql-server-management-studio.md).
78
+
79
+
Suppose you're using SQL Server in a client-server scenario (for example, when your application is accessing SQL Server across a network). If you stop or disable the SQL Server Browser service, you must assign a specific port number to each instance and configure your client application code to use that port number. This approach has the following problems:
75
80
76
81
- You must update and maintain client application code to ensure it's connecting to the proper port.
77
-
- The port you choose for each instance might be used by another service or application on the server, causing the instance of SQL Server to be unavailable.
82
+
83
+
- The port you choose for each instance could be used by another service or application on the server, causing the instance of SQL Server to be unavailable.
78
84
79
85
## Clusters and SQL Server Browser
80
86
81
87
SQL Server Browser isn't a clustered resource and doesn't support failover from one cluster node to the other. Therefore, if there's a cluster, SQL Server Browser should be installed and turned on for each cluster node. On clusters, the SQL Server Browser listens on `IP_ANY`.
82
88
83
-
> [!NOTE]
84
-
> When listening on IP_ANY, when you enable listening on specific IPs, the user must configure the same TCP port on each IP because SQL Server Browser returns the first IP/port pair it encounters.
89
+
When the SQL Server Browser listens on `IP_ANY` and you enable listening on specific IP addresses, you must configure the same TCP/IP port on each IP address, because SQL Server Browser returns the first IP address and port pair it encounters.
85
90
86
91
## Install, uninstall, and run from the command line
87
92
88
-
By default, the SQL Server Browser program is installed at *C:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe*.
93
+
By default, the SQL Server Browser program is installed at `<drive>:\Program Files (x86)\Microsoft SQL Server\<nn>\Shared\sqlbrowser.exe`.
89
94
90
95
The SQL Server Browser service is uninstalled when the last instance of SQL Server is removed.
91
96
92
-
SQL Server Browser can be started from the command prompt for troubleshooting by using the **-c** switch:
97
+
SQL Server Browser can be started from the command prompt for troubleshooting by using the `-c` switch:
93
98
94
-
```dos
99
+
```cmd
95
100
<drive>\<path>\sqlbrowser.exe -c
96
101
```
97
102
@@ -102,9 +107,12 @@ The SQL Server Browser Service is crucial in facilitating network communication
102
107
Security measures for SQL Server Browser Service include:
103
108
104
109
- Configuring firewalls to allow its traffic.
110
+
105
111
- Restricting access to trusted IP addresses.
112
+
106
113
- Regularly applying updates to patch vulnerabilities.
107
-
- Additionally, it's essential to implement strong authentication and authorization policies to prevent unauthorized access and maintain the integrity of your SQL Server environment.
114
+
115
+
- Additionally, you must implement strong authentication and authorization policies to prevent unauthorized access and maintain the integrity of your SQL Server environment.
108
116
109
117
### Account privileges
110
118
@@ -124,8 +132,8 @@ The minimum user rights for SQL Server Browser are:
124
132
Setup configures SQL Server Browser to use the account selected for services during setup. Other possible accounts include:
125
133
126
134
- Any **domain\local** account.
127
-
- The **local service** account.
128
-
- The **local system** account (not recommended as it has unnecessary privileges).
135
+
- The **Local Service** account.
136
+
- The **Local System** account (not recommended as it has unnecessary privileges).
description: Get help detecting problems in SQL Server by viewing the current error log, or backups of previous logs, to check whether processes have finished successfully.
3
+
description: Get help detecting problems in SQL Server by viewing the current error log, or backups of previous logs, to check whether processes finished successfully.
4
4
author: markingmyname
5
5
ms.author: maghan
6
-
ms.date: "03/14/2017"
6
+
ms.reviewer: randolphwest
7
+
ms.date: 02/13/2025
7
8
ms.service: sql
8
9
ms.subservice: tools-other
9
10
ms.topic: conceptual
@@ -16,14 +17,31 @@ helpviewer_keywords:
16
17
- "logs [SQL Server], SQL Server error logs"
17
18
monikerRange: ">=sql-server-2016"
18
19
---
19
-
# Viewing the SQL Server Error Log
20
-
[!INCLUDE [SQL Server Windows Only](../../includes/applies-to-version/sql-windows-only.md)]
21
-
View the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log to ensure that processes have completed successfully (for example, backup and restore operations, batch commands, or other scripts and processes). This can be helpful to detect any current or potential problem areas, including automatic recovery messages (particularly if an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] has been stopped and restarted), kernel messages, or other server-level error messages.
22
-
23
-
View the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log by using [!INCLUDE[ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or any text editor. For more information about how to view the error log, see [Open Log File Viewer](../../relational-databases/logs/open-log-file-viewer.md). By default, the error log is located at `Program Files\Microsoft SQL Server\MSSQL.`*n*`\MSSQL\LOG\ERRORLOG` and `ERRORLOG.`*n* files.
24
-
25
-
A new error log is created each time an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is started, although the [sp_cycle_errorlog](../../relational-databases/system-stored-procedures/sp-cycle-errorlog-transact-sql.md) system stored procedure can be used to cycle the error log files without having to restart the instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Typically, [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] retains backups of the previous six logs and gives the most recent log backup the extension .1, the second most recent the extension .2, and so on. The current error log has no extension.
26
-
27
-
Be aware that you can also view the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] error log on instances of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] that are offline or cannot start. For more information, see [View Offline Log Files](../../relational-databases/logs/view-offline-log-files.md).
28
-
29
-
20
+
# View the SQL Server error log
21
+
22
+
23
+
24
+
[!INCLUDE [SQL Server Windows Only](../../includes/applies-to-version/sqlserver.md)]
25
+
26
+
View the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] error log to ensure that processes complete successfully (for example, backup and restore operations, batch commands, or other scripts and processes). This procedure can be helpful to detect any current or potential problem areas, including automatic recovery messages (particularly if an instance of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] stopped and restarted), kernel messages, or other server-level error messages.
27
+
28
+
## How to view the error log
29
+
30
+
You can view the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] error log with [!INCLUDE [ssManStudioFull](../../includes/ssmanstudiofull-md.md)] or any text editor. For more information about how to view the error log, see [Open Log File Viewer](../../relational-databases/logs/open-log-file-viewer.md).
31
+
32
+
- On Windows, the default location for the error log is `<drive>:\Program Files\Microsoft SQL Server\MSSQL.<n>\MSSQL\LOG\ERRORLOG`.
33
+
34
+
- On Linux, the default location for the error log is `/var/opt/mssql/log`.
35
+
36
+
> [!NOTE]
37
+
> The files are called `ERRORLOG.<n>`, where `<n>` is an integer. The current error log has no extension.
38
+
39
+
A new error log is created each time an instance of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] is started, although the [sp_cycle_errorlog](../../relational-databases/system-stored-procedures/sp-cycle-errorlog-transact-sql.md) system stored procedure can be used to cycle the error log files without having to restart the instance of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)]. Typically, [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] retains backups of the previous six logs, and gives the most recent log backup the extension `.1`, the second most recent the extension `.2`, and so on. The current error log has no extension.
40
+
41
+
You can also view the [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] error log on instances of [!INCLUDE [ssNoVersion](../../includes/ssnoversion-md.md)] that are offline or can't start. For more information, see [View Offline Log Files](../../relational-databases/logs/view-offline-log-files.md).
0 commit comments