tibor_karaszi (1/11/2010)
Consider using Ola Hallengren's scripts: http://ola.hallengren.com/%5B/quote%5D
I often incorporate some of Ola's scripts inside my Maintenance Plans, running them as "Execute SQL Server Agent Job" tasks.
Brad M. McGehee
DBA