Created
February 9, 2014 14:29
-
-
Save csharpforevermore/8899829 to your computer and use it in GitHub Desktop.
Trim ELMAH database log table. Removes any entries older than 90 days (d = days, 90 = count). Original by Scott Mitchell (founder of 4GuysFromRolla.com)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM [ELMAH_Error] | |
WHERE TimeUtc < DATEADD(d, -90, getdate()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment