Solved

SQL server maintenamce plan error

Posted on 2009-05-17
5
290 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Help with SQL Query 23 39
Extract XML Data from using TSQL 5 32
MSSQL: Wrong result in a query (Nulls) 6 21
select over clause 1 15
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

744 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

12 Experts available now in Live!

Get 1:1 Help Now