| title | View the SQL Server error log (SSMS) | |||||
|---|---|---|---|---|---|---|
| description | Learn about the SQL Server error log, which contains user-defined events and certain system events you can use for troubleshooting. | |||||
| ms.service | sql | |||||
| ms.subservice | performance | |||||
| ms.topic | conceptual | |||||
| helpviewer_keywords |
|
|||||
| author | WilliamDAssafMSFT | |||||
| ms.author | wiassaf | |||||
| ms.reviewer | ||||||
| ms.custom | seo-dt-2019, FY22Q2Fresh | |||||
| ms.date | 10/05/2022 |
[!INCLUDE SQL Server] The [!INCLUDEssNoVersion] error log contains user-defined events and certain system events you can use for troubleshooting.
-
In SQL Server Management Studio, select Object Explorer. To open Object Explorer, select F8. Or on the top menu, select View, and then select Object Explorer:
:::image type="content" source="../../relational-databases/performance/media/object-explorer.png" alt-text="Object Explorer in the SSMS menu" lightbox="../../relational-databases/performance/media/object-explorer.png":::
-
In Object Explorer, connect to an instance of SQL Server, and then expand that instance.
-
Find and expand the Management section (assuming you have permissions to see it).
-
Right-click SQL Server Logs, select View, and then choose SQL Server Log.
:::image type="content" source="../../relational-databases/performance/media/view-sqlserver-log-ssms.png" alt-text="View the SQL Server Log in SSMS" lightbox="../../relational-databases/performance/media/view-sqlserver-log-ssms.png":::
-
The Log File Viewer appears (it might take a moment) with a list of logs for you to view.