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