Ola's SQL Server Maintenance solution - commandlog cleanup

  • I have searched up and down and can't find anything regarding this topic.

    Am I missing something if so please let me know. If not please what are your suggestions for cleaning up this table created using Ola's tools and logging the output to the table in the Master db.

    Thanks for any suggestions or help.

  • Found a job created called Commandlog Cleanup

    Doh

    I searched and searched for info on the site never found anything.

    Here is the SQL if anyone is interested:

    sqlcmd -E -S $(ESCAPE_SQUOTE(SRVR)) -d master -Q "DELETE FROM [dbo].[CommandLog] WHERE DATEDIFF(dd,StartTime,GETDATE()) > 30" -b

Viewing 2 posts - 1 through 1 (of 1 total)

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