|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 7:26 AM
Points: 2,414,
Visits: 431
|
|
Comments posted here are about the content posted at temp
---------------------- http://thomaslarock.com
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Wednesday, November 17, 2010 3:38 AM
Points: 445,
Visits: 82
|
|
Thanks for the nice script.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Friday, August 31, 2007 8:22 AM
Points: 92,
Visits: 1
|
|
| Excellent article. Thanks for sharing.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 1:20 PM
Points: 25,
Visits: 63
|
|
| This is another good example of a script to add to my "toolbox". Thanks and keep them coming.
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Thursday, November 08, 2012 1:57 PM
Points: 96,
Visits: 60
|
|
Wonderfull , this show that wat great factor shoub be noted by any DBA hows its important , keeep it up
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Friday, December 17, 2010 6:17 AM
Points: 26,
Visits: 81
|
|
Great Idea, this thought pattern can be used in other area's too. I would give my left leg for a method of dumping out Server EVT's parsing them cleaning them and then letting me know if anythings' gone wrong. Without me having to lift a finger.
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Thursday, October 25, 2012 8:14 AM
Points: 6,
Visits: 91
|
|
i need a new left leg
http://www.sql-server-performance.com/rvb_processing_event%20_logs.asp
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 5:25 AM
Points: 564,
Visits: 1,457
|
|
Haven't found the problem yet but even after putting a "WARNING" message in my log, I'm still getting No Errors in the Error Logs I thought the use of character fields for the Error_Date fields could be a problem but now I don't think so. Must be something in Usp_Errorlog_Notification RAISERROR ('WARNING', 16, 1) with log
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 7:26 AM
Points: 2,414,
Visits: 431
|
|
All, The version of the proc I included is incorrect, and I will ask Steve to post a new zip file with the updated code. Essentially when the delete happens based upon the date, we used to have a convert statement and we lost that during one of the last frantic rewrites as we tried to get things working for SS2K5. Anyway, the key is to have this line: delete #Errors from #Errors eTmp where vchLogDate <= @MxDateDel changed to this: delete #Errors from #Errors eTmp where convert(datetime,vchLogDate) <= convert(datetime,@MxDateDel) That should avoid the problem you are seeing right now, i believe. Also, when in doubt, we sometime will flush the ErrorsP1 table with a truncate statement in order to see if that helps things flow through again. Let me know if there are any other issues with the code so that I can research it immediately. tom
---------------------- http://thomaslarock.com
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 5:25 AM
Points: 564,
Visits: 1,457
|
|
I also changed this line to convert char to datetime -- before that I was getting lots of very old log entries emailed to me. -- next, find the current max date in the ErrorsP1 table Select @MxDateDel = max(convert(datetime,Error_date)) from ErrorsP1 Also removed "login failed for user" from ErrorlogScanExclude table because I don't get many and wanted to see them. INSERT INTO dbo.ErrorlogScanExclude ( Excludekeyword ) VALUES ( 'Login failed for user' ) go
|
|
|
|