
Rudi Bruchez EI · www.pachadata.com · rudi@pachadata.com · +33 6 22 48 76 99
Consulting, audit, performance tuning, solutions, training
SQL Server OLTP and BI / NoSQL
Version of October 14, 2026 (4308dcaa) · https://www.pachadata.com/en/docs/howtos/troubleshooting/retrieve-error-log/
Retrieve the error logs
To analyze problems on a SQL Server instance, retrieve the SQL Server error logs (ERRORLOG). They hold a great deal of useful information.
Retrieve the logs
The error logs are text files, in a specific directory under the SQL Server data folder.
You can find its path with this query:
SELECT SERVERPROPERTY('ErrorLogFileName');
There you will find ERRORLOG, the current log, and the ERRORLOG.* files, where * is a number. After a rotation — usually at instance restart — the previous log becomes number 1, the one before it number 2, and so on.
Zip them: these files compress extremely well.
Then send me the archive.
Contact
I have been an independent SQL Server consultant since 2006. I help when an application slows down, when a server costs too much in storage or licenses, or when a migration must not stop production: audit and diagnosis, query and index tuning, migrations, high availability, training. On site, or as a remote audit delivered in five working days.
rudi@pachadata.com · +33 6 22 48 76 99 · www.pachadata.com/en/contact/