What should you do?

You are responsible for implementing maintenance jobs on a SQL Server 2005 database server. Certain jobs run every Sunday and other jobs run at the beginning of every month.
You need to schedule the jobs in the way that uses the least amount of administrative effort. What should you do?

You are responsible for implementing maintenance jobs on a SQL Server 2005 database server. Certain jobs run every Sunday and other jobs run at the beginning of every month.
You need to schedule the jobs in the way that uses the least amount of administrative effort. What should you do?

A.
Create a job schedule that runs every Sunday. Assign weekly tasks to this schedule.
Create a second schedule that runs on the first day of every month. Assign monthly tasks to this schedule.

B.
Create a job for each task that runs once a day. Use a Transact-SQL statement to check the date and day of the week. If the day is either a Sunday or the first day of the month, execute the code.

C.
Create a job schedule that runs once a day. Assign jobs to this job schedule. If the day is either a Sunday or the first day of the month, execute the jobs.

D.
Create a job for each task that runs once a week on Sunday. Add a second job schedule that runs the job on the first of the month.

Explanation:
You need 2 schedules or both tasks will be executed on Sundays and on the first day of the month. Creating a job schedule for each task that runs once a week instead of creating one schedule containing all the tasks would use more administrative effort than needed.



Leave a Reply 0

Your email address will not be published. Required fields are marked *