**Failure** Weekly Backup Maintenance

Server: ####
Instance: Instance4
Maintenance Plan: WeeklyBackupMaintStep: Rebuild Index Task Event Status: Failure

Open in new window


Getting this failure message and having trouble tracking down the cause. I am not familiar with SQL troubleshooting.
Maintenance-Plan.PNG
Aaron_GruberAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AnujSQL Server DBACommented:
The attachment does not have enough details, can you provide more details from SQL Server Error log and Maintenance plan history?
0
Aaron_GruberAuthor Commented:
I am going to need some help locating exactly what you are looking for. SQL n00b.
0
Moomin83Commented:
Hi Aaron_Gruber

If you have access to "Microsoft SQL Server Management Studio", connect to the instance. navigate to the "Management" folder within the "Object Explorer". Expand the folder and "right click" the maintenance plan, select "View History". in the new screen that opens, navigate to the failed step and select the Error message.

This should provide insight into the problem. I would however  simplify your "maintenance task" and break it into sections that operate at separate times.

Regards
Robert
0
The Five Tenets of the Most Secure Backup

Data loss can hit a business in any number of ways. In reality, companies should expect to lose data at some point. The challenge is having a plan to recover from such an event.

dax_badCommented:
Also there's no point in reorganizing AND rebuilding indexes in the same plan unless in two separate subplans with different schedules.

Usually reorganizing indexes is executed as a daily maintenance plan and rebuilding on a weekly basis depending on individual requirements of course. Point is, rebuilding indexes in a plan makes reorganizing them obsolete and just extra maintenance time on your DB server.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Aaron_GruberAuthor Commented:
Here is an export of the failed task.
MaintenanceLog.log
0
Aaron_GruberAuthor Commented:
by: dax_badPosted on 2012-03-13 at 06:32:31ID: 37714571

Also there's no point in reorganizing AND rebuilding indexes in the same plan unless in two separate subplans with different schedules.

Usually reorganizing indexes is executed as a daily maintenance plan and rebuilding on a weekly basis depending on individual requirements of course. Point is, rebuilding indexes in a plan makes reorganizing them obsolete and just extra maintenance time on your DB server.

Good to know.
0
dax_badCommented:
The attached log is just the log, not the actual log of each task. It still just shows it fails during rebuild of indexes and we need the task log to see what index is causing the plan to fail. The reason for failure could be that an index is locked during rebuild (rebuild drops all indexes and recreates them, this can only be done online with enterprise edition).

Folow Roberts instructions and expand the failed plan, then select the failed task and in the "Selected row details" window in the bottom copy the contents of the "Error message" line. This line should contain the info we need to help you.

Cheers
Daniel
0
Aaron_GruberAuthor Commented:
Executing the query "ALTER INDEX [UidDefBatchLineType] ON [dbo].[def_ba..." failed with the following error: "Transaction (Process ID 80) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Open in new window

0
Moomin83Commented:
The error indicates exactly what Daniel mentioned in comment ID: 37715210. As per both our (Daniel and myself) first comments, simplify your maintenance plan. Daniel made a comment in ID: 37714571 suggesting you separate the rebuild and reorganizing into separate tasks. You could also look at the SQL Best Practises link on how to properly structure your backups and maintenance requirements.

HTH
Robert
0
dax_badCommented:
Yeah simplify the maintance plan and make sure the weekly rebuild indexes runs at a time (evening/night) where the database/Index is not being used, otherwise you can set the allow row/page locks to false, but be careful with that as it might affect the software using the database.

Cheers
Daniel
0
Aaron_GruberAuthor Commented:
I updated my maintenance plans by removed Reorganize from "WeeklyJob" and adding Reorganize to "NightlyJob".

I spoke to the Admin who origially set up the jobs and he rememberd there being an issue with the way it was set up. He admitted that he must have forgotten about this plan.

My weekly plan is scheduled to run on Sunday @ 1am. At this point it is going to be "wait and see".
0
dax_badCommented:
you can force it to run by selecting the plan and click execute steps to force a "run now", but remember it might still fail if the index is in use OR as you said just wait and see how it goes on sunday :-)
0
Aaron_GruberAuthor Commented:
This fixed my issue. Thanks for the assistance.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server Apps

From novice to tech pro — start learning today.