Solved

maintenance plans ran out of sequence

Posted on 2012-03-10
6
125 Views
Last Modified: 2013-03-04
We have several maintenance plans that should run in this order each Saturday night
1.CheckDB
2.ShrinkDBCC
3.Alter index reorganize
4.Alter index rebuild
5.Backup

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?
0
Comment
Question by:dwiseman3
  • 3
  • 2
6 Comments
 
LVL 25

Accepted Solution

by:
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.
0
 
LVL 3

Assisted Solution

by:sjurus
sjurus earned 250 total points
ID: 37710493
Hi,
First, do not use the DBCC Shrink, below the link to an article that explains it nicely:
http://www.sqlskills.com/blogs/paul/post/why-you-should-not-shrink-your-data-files.aspx

Second, do the rebuilding and reorganizing indexes in one job,below the link to an article that explains it nicely
http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html

Then you can do CHECKDB, below the link to the cool of procedure:
http://ola.hallengren.com/sql-server-integrity-check.html

And what is the frequency of backup depends on the requirements of business, below the link to the cool of procedure:
http://ola.hallengren.com/sql-server-backup.html
0
 
LVL 25

Expert Comment

by:jogos
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.
0
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

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

Expert Comment

by:jogos
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?
0
 

Author Comment

by:dwiseman3
ID: 37728843
yes
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In this article I will describe the Copy Database Wizard 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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now