This script helps out to query the SQL Server Errorlog path using T-SQL. This script will work on both SQL 2000/2005.
Note : if there exists problem copying the code directly to Query Analyzer or SSMS. Please copy it to wordpad/Word, from there copy to your query window.