maintenance plans ran out of sequence

Posted on 2012-03-10
Last Modified: 2013-03-04
We have several maintenance plans that should run in this order each Saturday night
3.Alter index reorganize
4.Alter index rebuild

I changed the schedules so they wouldn't overlap. As a result, shrinkDBCC and Alter index reorganize did not run before Alter index rebuild and the backup ran. Our mdf is now 13GB whereas it used to be 11GB. The backup file is 11GB. We use a simple backup.

Has this caused a problem? What steps should I take now?
Question by:dwiseman3
  • 3
  • 2
LVL 25

Accepted Solution

jogos earned 250 total points
ID: 37705682
When backup is 11GB then you have 11GB of data and indexes. If your file is 13GB that means that there is 2GB free space for growth , seems reasonable.

Shrinking dbfiles means
- freeing space on disk to allocate it a few days later again .... fragmentation on disk.
- moving pages in your db around so your tables and indexes are scatered alover the db-file .... fragmentation in your database

With a database that size I think fragmentation is not something you are looking for.

Assisted Solution

sjurus earned 250 total points
ID: 37710493
First, do not use the DBCC Shrink, below the link to an article that explains it nicely:

Second, do the rebuilding and reorganizing indexes in one job,below the link to an article that explains it nicely

Then you can do CHECKDB, below the link to the cool of procedure:

And what is the frequency of backup depends on the requirements of business, below the link to the cool of procedure:
LVL 25

Expert Comment

ID: 37710584
<<As a result, shrinkDBCC and Alter index reorganize did not run before Alter index rebuild and the backup ran. >>
Did they start and didn't end before next started? Or didn't the start at all?
In sql agent you can look at the job-history of the maintenance plan.
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.


Author Comment

ID: 37722002
SHRINKDBCC and ALTER index reorganize did not start at all.
LVL 25

Expert Comment

ID: 37722039
<<SHRINKDBCC and ALTER index reorganize did not start at all.>>
Checked the sql agent job? Is it enabled and next shedulled time is correct?

Author Comment

ID: 37728843

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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 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