View the SQL Server error log (SQL Server Management Studio)

APPLIES TO: yesSQL Server noAzure SQL Database noAzure SQL Data Warehouse noParallel Data Warehouse

The SQL Server error log contains user-defined events and certain system events you can use for troubleshooting.

View the logs

  1. 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:


  2. In Object Explorer, connect to an instance of SQL Server, and then expand that instance.

  3. Find and expand the Management section (assuming you have permissions to see it).

  4. Right-click SQL Server Logs, select View, and then choose SQL Server Log.


  5. The Log File Viewer appears (it might take a moment) with a list of logs for you to view.

We are listening: If you find something outdated or incorrect in this article, such as a step or a code example, please tell us. You can click the This page button in the Feedback section at the bottom of this page. We read every item of feedback about SQL, typically the next day. Thanks.

See also

For more information, see's helpful post Identify location of the SQL Server Error Log file.