T-SQL to Check SQL ErrorLog file location


At the start up of SQL Server records the startup parameter details into the error log.

You can query the error log to check the error log file physical location.

USE master
GO
xp_readerrorlog 0, 1, N'Logging SQL Server messages in file', NULL, NULL, N'asc'
GO

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