SQL Server Automation (Maintenance Plan)
SQL Server Automation (Maintenance Plan)
SQL Server Automation (Maintenance Plan)
Server
Baro Technologies
SQL Server Automation
• Automating common maintenance activities using Maintenance Tasks
• Scheduling jobs to perform maintenance activities using SQL Server Agent
• Securing the jobs you create using SQL Server Agent security
• Configuring SQL Server Agent to meet your needs
• Scheduling jobs across multiple servers using the multiserver admin
capabilities
• Much of the work that a database
administrator (DBA) does is repetitive:
• backing up databases,
• rebuilding indexes,
• checking for file sizes
• disk-space availability.
• Two features in SQL Server come to the
rescue of the DBA:
• Maintenance Plans
• SQL Server Agent.
Maintenance Plans enable you to Backups, database integrity checks,
automate the routine maintenance and index maintenance tasks can be
activities for a database. automated with Maintenance Plans.
WHAT TO CONSIDER WHEN -TYPE OF ENVIRONMENT ( - CONSULT APPLICATION - SIZE OF THE DATABASE. - WHAT KIND OF
CREATING SCHEDULE AND PROD,QA,DEV) OWNERS (RPO,RTO, ENVIRONMENT ( OLTP,
MAINTENANCE PLAN. RETENTION PLAN) OLAP)
Methods of Creating Maintenance Plan
• Maintenance Plan
• Maintenance Plan Wizard
• T-sql scripts
• Powershell
• Cmdshell
• Ola Halengreen (Maintainacesoultion.sql)
• https://ola.hallengren.com/
SQL Server Agent