Solved

What's difference between Maintenance Plans and SQL Jobs in MS SQL 2005?

Posted on 2010-08-16
4
839 Views
Last Modified: 2012-05-10
What's difference between Maintenance Plans and SQL Jobs in MS SQL 2005?
0
Comment
Question by:SAM2009
  • 2
  • 2
4 Comments
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 250 total points
ID: 33451492
A maintenance plan is a preset series of steps that you can perform against a database, collectively considered as "maintenance" tasks.  You can pick and choose to build up a plan.

A SQL Job is a collection of tasks that you schedule to run at a particular time using SQL Server Agent.

In the UI for setting up maintenance tasks, it hooks into the SQL Job ui for you to schedule the maintenance plan.   However, going into SSMS, Jobs directly, you can set up any type of job, even just running a stored procedure regularly.
0
 
LVL 1

Author Comment

by:SAM2009
ID: 33451506
Thanks.

Does maintenanance can run without planning a job?
0
 
LVL 58

Assisted Solution

by:cyberkiwi
cyberkiwi earned 250 total points
ID: 33451518
No. The job is what schedules it.  Otherwise it does nothing.
If you expand jobs, you will see a job with a strange name representing the maintenance plan.
0
 
LVL 1

Author Closing Comment

by:SAM2009
ID: 33451596
Ok I see. Thank you very much for the SQL 101 lesson :)
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question