Undocumented Server Property ErrorLogFileName

You can use Server Property errorlogfilename to get the error log file path.

SELECT SERVERPROPERTY(‘ErrorLogFileName’)

Comments

Thanks for the comment, will get back to you soon… Jugal Shah