• Hi there,

    I receive this error when I test your script with the following parameters

    sp_SearchSQLErrorLog @AllLogs = 0, @LogFile = 1, @SearchString1 = 'login', @SearchString2 = 'sa'

    RegQueryValueEx() returned error 2, 'The system cannot find the file specified.'

    Msg 50000, Level 11, State 3, Procedure sp_SearchSQLErrorLog, Line 63