Description: Like the SQL Server ErrorLog, the SQL Server Agent ErrorLog is stored in a text file on the servers disk. It's usually in the subdirectory \MSSQL\Log under the location were the SQL Server Instance's code is installed. This article’s code is a UDF, udf_SQLA_ErrorLogFile that reads the registry to find the location of this log file.