Actually that last statement is partially incorrect, you cannot do it using a maintenance plan as the maintenance plan tools cannot read the database, but you can do it via scripts.
http://technet.microsoft.com/en-us/library/hh245119.aspx
MCITP SQL 2005, MCSA SQL 2012