Solved

SQL server maintenamce plan error

Posted on 2009-05-17
5
292 Views
Last Modified: 2012-05-07
this is the post that i had posted earlier but i posted earlier to draw some attention to it. please help regarding this

I have a weekly job that runs and fails. I have created a maintenance plan on databases  P6302, P66, P67, P82, P58. The maintenance plan includes
--Check database integrity
-- reorganize index
-- Rebuild index
-- update statistics.

details of error:-
Step ID            0
Server            IHS-MAIN-SQL-04
Job Name            P63 Maintenance Plan.Subplan_1
Step Name            (Job outcome)
Duration            06:26:33
Sql Severity            0
Sql Message ID            0
Operator Emailed            
Operator Net sent            
Operator Paged            
Retries Attempted            0

Message
The job failed.  The Job was invoked by Schedule 5 (P63 Maintenance Plan.Subplan_1).  The last step to run was step 1 (Subplan_1).


more details of the error:-
Date            5/16/2009 10:00:00 PM
Log            Job History (P63 Maintenance Plan.Subplan_1)

Step ID            1
Server            IHS-MAIN-SQL-04
Job Name            P63 Maintenance Plan.Subplan_1
Step Name            Subplan_1
Duration            06:26:33
Sql Severity            0
Sql Message ID            0
Operator Emailed            
Operator Net sent            
Operator Paged            
Retries Attempted            0

Message
Executed as user: IHS\SqlAgent. ...rsion 9.00.3042.00 for 64-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    Started:  10:00:00 PM  Progress: 2009-05-16 22:00:07.97     Source: {98AEE4A9-0C39-4513-9BB1-05959811F06E}      Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp".: 100% complete  End Progress  Progress: 2009-05-16 22:00:10.14     Source: Check Database Integrity Task      Executing query "USE [P63]  ".: 50% complete  End Progress  Progress: 2009-05-16 23:06:07.56     Source: Check Database Integrity Task      Executing query "DBCC CHECKDB WITH NO_INFOMSGS  ".: 100% complete  End Progress  Progress: 2009-05-16 23:14:24.53     Source: Reorganize Index Task      Executing query "USE [P63]  ".: 0% complete  End Progress  Progress: 2009-05-16 23:14:24.56     Source: Reorganize Index Task      Executing query "ALTER INDEX [PK_NameSeq] ON [dbo].[_not_used_Junk8".: 0% complete  End Progress  Progress: 2009-05-16 23:14...  The package execution fa...  The step failed.


so can anybody what's happening in the above steps and how do i resolve this.
0
Comment
Question by:aatishpatel
  • 2
  • 2
5 Comments
 
LVL 26

Accepted Solution

by:
Zberteoc earned 500 total points
ID: 24406356
For some of the steps needed for database maintenance you need that the database to be in single user mode. You can't execute the step if other users are connected to the database except for the SQLAgent account.This might generate errors.

The best way to track the error is to associate a log file for the job which can be done in the Advance tab, You'll have more details on the error. Another idea would be to separate the steps in different jobs so that at least the ones that don't fail to execute.

0
 

Author Comment

by:aatishpatel
ID: 24408392
but i think the maintenance plan fails because below fails

 Source: Reorganize Index Task      Executing query "USE [P63]  ".: 0% complete  End Progress  Progress: 2009-05-16 23:14:24.56     Source: Reorganize Index Task      Executing query "ALTER INDEX [PK_NameSeq] ON [dbo].[_not_used_Junk8".: 0% complete  End Progress  Progress: 2009-05-16 23:14...  The package execution fa...  The step failed.
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24408403
make sure you click on the job history details and post the entire details....
0
 
LVL 26

Expert Comment

by:Zberteoc
ID: 24411470
You have to be sure not just to think about the error. In Job history the error is sometimes shown incomplete for some reason. Use a log file as I said.
0
 

Author Closing Comment

by:aatishpatel
ID: 31582355
got some ideas, anyways thanx
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

831 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