|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 10:59 AM
Points: 1,109,
Visits: 523
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, December 06, 2012 1:26 PM
Points: 1,
Visits: 254
|
|
I am a newbie to sql. I can get this to work on sql 2005 but not on sql 2000? How can I make it work for sql 2000?
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 10:59 AM
Points: 1,109,
Visits: 523
|
|
Hi Nancy, sorry the delay but I'm on a trip and just saw your post. First of all, it won't work on SQL 2000 because I create a table variable, which is not supported. Second, the sp_readerrorlog procedure exists on SQL 2000, but the parameters are not the same. I'll try to get my hands in one SQL 2000 instance tomorrow and then post back the sp.
Thanks, Alejandro
Alejandro Pelc
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Yesterday @ 9:25 AM
Points: 12,
Visits: 328
|
|
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
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: 2 days ago @ 10:59 AM
Points: 1,109,
Visits: 523
|
|
Hi James, That means that one of the log files is not there. I'll review the script to validate that the log file exists.
Cheers, Alejandro
Alejandro Pelc
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Sunday, May 19, 2013 8:09 AM
Points: 1,558,
Visits: 1,396
|
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Yesterday @ 9:25 AM
Points: 12,
Visits: 328
|
|
|
|
|