SOLVED: How to Set SQL Backups & A full Maintenance Plan Using Only SQL Server Managment Studio
To backup SQL properly there are serveral easy items you need to setup:
double click on each datbase and set your BACKUP MODEL to FULL
go to MANAGEMENT > MAINTENANCE PLANS and setup the three plans shown below
go to SQL SERVER AGENT > JOBS and make sure your jobs appear here (and make sure the SQL SERVER AGENT service is running!)
MAINTENANCE PLAN 1: DAILY SQL MAINTENANCE
Drag out the BACKUP DATABASE TASK and set it to backup ALL DATABASES, FULL with DEFAULT COMPRESSION
Drag our the MAINTENANCE CLEANUP TASK and set it to delete backed up database files (by setting the FILE EXTENTION field to BAK – you do NOT enter .BAK) older than X days (I like 4 for X)
Drag our the MAINTENANCE CLEANUP TASK and set it to delete backed up logs (by setting the FILE EXTENTION field to LOG – you do NOT enter .LOG) older than X days (I like 4 for X)
Connect all of these in the order shown by dragging the green arrow at the bottom of one box to the other
Set this to run several times a day (like every TWO hours from 9:00am to 5:59pm)
MAINTENANCE PLAN 2: INTRADAY SQL MAINTENANCE
Drag out the BACKUP DATABASE TASK and set it to backup ALL DATABASES, FULL and set the CREATE A BACKUP FILE FOR EVERY DATABASE to what a location you like but set the BACKUP FILE EXT to TRN
Drag our the MAINTENANCE CLEANUP TASK and set it to delete backed up logs (by setting the FILE EXTENTION field to TRN – you do NOT enter .TRN) older than X days (I like 5 for X)
Connect all of these in the order shown by dragging the green arrow at the bottom of one box to the other
Set this to run daily at an off hour (like 10pm)
MAINTENANCE PLAN 3: WEEKLY SQL MAINTENANCE
Drag out the CHECK DATABASE INTEGRITY TASK, set to ALL DATABASES and INCLUDE INDEXES
Drag out the REBUILD INDEX TASK
Drag out the SHRINK DATABASE TASK
Drag out the UPDATE STATISTICS TASK
Drag out the HISTORY CLEAN UP TASK
Drag out the MAINTENANCE CLEANUP TASK
Connect all of these in the order shown by dragging the green arrow at the bottom of one box to the other
Set this to run once a week at some very off hour (like 4AM Saturday morning) AFTER you have completed a full backup.