Reading the event log from isnide SQL Server

  • Is there any possibility to read the event log from insdie SQL Server 2000? I know there is an undocumented extended stored procedure xp_eventlog in the master database, but it seems that is not working.

    Gabriela

  • Per http://www.winnetmag.com/SQLServer/Article/ArticleID/23160/23160.html the xp_eventlog proc doesn't work in SQL Server 2000. If you really wanted to you could use xp_cmdshell to run some OS program that would strip out the desired event log entries and write them to a SQL Server table. Since I'm guessing you're not going to find a freeware/shareware or commercial program to do that for you it would need to be a custom built program.

  • The resource kit has a utility called logparser. You can directly dump data into sql tables using this utility or process the data as you need. You can run this using xp_cmdshell as Aaron suggested.

  • Thanks. LogParser works fine.

    Gabriela

  • I contributed a nifty stored procedure that uses LogParser to import EventLog data -- take a look.  Just do a search for LogParser and the script will be in the results.

    Mark

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply