Since SQL Server 2005 Express Edition does not come with the sqlmaint utility or anything like it, this code demonstrates how to write a TSQL equivalent. It allows for Full, Differential and Log backups of specific databases or all user or system databases, Index Rebuilding or Reorganization and Database Integrity checks with full reporting and old backup/report housekeeping.