I've been truncating this table to resolve the issue. However, i want to maintain 7 days data. I've tried running the DB maintenance/compact, etc. Nothing seems to shrink it below 50GB. Is there a way to run a SQL script to delete all rows older than 7 days on this table? If so, can someone please let me know what that script would be? The closest thing I've found is this.
Set ROWCOUNT 10
DELETE FROM SysLog WHERE (MONTH(DateTime) = 7) AND (DAY(DateTime) = 9)
SET ROWCOUNT 0
However, I don't want to run this manually on certian rows and keep changing the date, etc. i want to set it up to run automatically. Any assistance would be appreciated. Thanks!