How do I view the TSQL associated with the History Cleanup task

  • Our backup status shows failed because of the History Cleanup task failed. How do I view the TSQL associated with the History Clean Up task. We run SQL Server 2005.

  • If you can't get it another way, run a trace and run the task. Get the SQL out of the trace.

    But you should be able to open up the maintenance plan in the designer, double-click the history cleanup step, and click "View T-SQL".

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

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

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