April 19, 2016 at 10:47 am
Hi All,
i am little bit confusion about Maintance plan and sql job.
i want to take backup in schedule basis. so which option will meet my requirements?
creating job in sql agent or creating a job in maintainceplan .
please help me on this
April 19, 2016 at 1:48 pm
naveen.neerukattu1228 (4/19/2016)
Hi All,i am little bit confusion about Maintance plan and sql job.
i want to take backup in schedule basis. so which option will meet my requirements?
creating job in sql agent or creating a job in maintainceplan .
please help me on this
You will need both.
First, create your maintenance plan to do the backups. While you're still inside the maintenance plan, click on the icon to schedule it (top of the window) and when you create the schedule, it will create a job for you automatically.
Alternatively, if you already have a maintenance plan for the backups, you can create a new job and select that maintenance plan, and then schedule it however you like.
It is possible to do scheduled backups using a job alone, but it makes a lot more sense to do it via the maintenance plan - especially if you're new to this sort of thing.
April 19, 2016 at 3:26 pm
Simpy put - when you create a maintenance plan and schedule it you are creating a new SQL Agent Job that runs your "maintenance plan" at a time of your choosing.
Alternatively you can simply create a new SQL Agent job and a step that backs up your databases using T-SQL.
-- Itzik Ben-Gan 2001
April 19, 2016 at 11:50 pm
For job we can make alerts or notification if the job fails then what about Maintenance plan job. is there any alert or notification ? for maintenance job
April 20, 2016 at 2:11 am
naveen.neerukattu1228 (4/19/2016)
For job we can make alerts or notification if the job fails then what about Maintenance plan job. is there any alert or notification ? for maintenance job
Either way is going to involve a job. You'll either have a job that runs a maintenance plan, or a job that does the backup itself via T-SQL.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply