MaintenancePLan

Hello
I am running MS SQL 2008R2 SP3 and I am trying to run MaintenancePLan.
Current jobs are:
1) Check Database Integrity (scheduled to run every Sunday at 2am)
2) Reorganize Index (scheduled to run every Monday to Friday at 5am)
3) Rebuild Index (scheduled to run every Saturday at 12am)
Check database Intergrity and Reorganize Index jobs both have failed.
This is the error I got from Reorganize Index job:
Executed as user: SERVERNAME\SYSTEM. Microsoft (R) SQL Server Execute Package Utility  Version 10.50.6000.34 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  1:56:58 p.m.  Progress:
2014-11-25 13:57:32.01     Source: {CAD214DB-74A5-4052-B78F-15BFA064D762}      Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp...".: 100% complete  End
Progress  Error: 2014-11-25 13:58:55.78     Code: 0xC0024104     Source: Reorganize Index      Description: The Execute method on the task returned error code 0x80131904 (Transaction (Process
ID 56) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.). The Execute method must succeed, and indicate the result using an "out" parameter.  End Error  DTExec: The
package execution returned DTSER_FAILURE (1).  Started:  1:56:58 p.m.  Finished: 1:58:56 p.m.  Elapsed:  117.688 seconds.  The package execution failed.  The step failed.
I did run this job manually at 2pm in afternoon while users were accessing the database.
Thanks

Started a different job and it failed... (Rebuild Index).
Date 26/11/2014 9:02:04 p.m.
Log Job History (Rebuild Index)
Step ID 1
Server PFINSVR1
Job Name Rebuild Index
Step Name Subplan_3
Duration 00:29:03
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: PFINSVR1\SYSTEM. ...on 10.50.6000.34 for 64-bit  Copyright (C) Microsoft Corporation 2010. All rights reserved.    Started:  9:02:04 p.m.  Progress: 2014-11-26 21:02:06.13     Source: {C2C69251-709D-48EF-B2D2-3DDE0D1DDA5A}
     Executing query "DECLARE @Guid UNIQUEIDENTIFIER      EXECUTE msdb..sp...".: 100% complete  End Progress  Progress: 2014-11-26 21:02:45.04     Source: Rebuild Index      Executing
query "USE [finPOWER_Pioneer]  ".: 0% complete  End Progress  Progress: 2014-11-26 21:02:45.48     Source: Rebuild Index      Executing query "ALTER INDEX [IX_Description] ON [dbo].[Account] RE...".:
0% complete  End Progress  Progress: 2014-11-26 21:02:45.49     Source: Rebuild Index      Executing query "USE [finPOWER_Pioneer]  ".: 0% complete  End Progress  Progress: 2014-11-26 21:02:45.53
    Source: Rebuild Index      Executing query "ALTER INDEX [PK_Account] ON [dbo].[Account] REBUIL...".: 0% complete  End Progress  Progress: 2014-11-26 21:02:45.53     Source: Rebuild Index    
 Executing query "USE [finPOWER_Pioneer]  ".: 0% complete  End Progress  Progress: 2014-11-26 21:02:45.63     Source: Rebuild Index      Executing query "ALTER INDEX [PK_Archive] ON [dbo].[Archive]
REBUIL...".: 0% complete  End Progress  Progress: 2014-11-26 21:02:45.63     Source: Rebuild Index      Executing query "USE [finPOWER_Pioneer]  ".: 1% complete  End Progress  Progress: 2014-11-26
21:02:45.67     Source: Rebuild Index      Executing query "ALTER INDEX [ArchiveArchiveClient] ON [dbo].[Archi...".: 1% complete  End Progress  Progress: 2014-11-26 21:02:45.67     Source: Rebuild Index
     Executing query "USE [finPOWER_Pioneer]  ".: 1% complete  End Progress  Progress: 2014-11-26 21:02:45.76     Source: Rebuild Index      Executing query "ALTER INDEX [ClientArchiveClient]
ON [dbo].[Archiv...".: 1% complete  End Progress  Progress: 2014-11-26 21:02:45.76     Source: Rebuild Index      Executing query "USE [finPOWER_Pioneer]  ".: 1% complete  End Progress  Progress:
2014-11-26 21:02:45.78     Source: Rebuild Index      Executing query "ALTER INDEX [PK_ArchiveClient] ON [dbo].[ArchiveCl...".: 1% complete  End Progress  Progress: 2014-11-26 21:02:45.78     Source: Rebuild
Index      Executing query "USE [finPOWER_Pioneer]  ".: 2% complete  End Progress  Progress: 2014-11-26 21:02:45.92     Source: Rebuild Index      Executing query "ALTER INDEX [ArchiveArchiveInfo]
ON [dbo].[Archive...".: 2% complete  End Progress  Progress: 2014-11-26 21:02:45.92     Source: Rebuild Index      Executing query "USE [finPOWER_Pioneer]  ".: 2% complete  End Progress  Progress:
2014-11-26 21:02:46.03     Source: Rebuild Index      Executing query "ALTER INDEX [PK_ArchiveInfo] ON [dbo].[ArchiveInfo...".: 2% complete  End Progress  Progress: 2014-11-26 21:02:46.03     Source: Rebuild
Index      Executing query "USE [finPOWER_Pioneer]  ".: 2% complete  End Progress  Progress: 2014-11-26 21:02:46.18     Source: Rebuild Index      Executing query "ALTER INDEX [IX_AuditType]
ON [dbo].[Audit] REBUIL...".: 2% complete  End Progress  Progress: 2014-11-26 21:02:46.18     Source: Rebuild Index      Executing query "USE [finPOWER_Pioneer]  ".: 3% complete  End Progress  Progress:
2014-11-26 21:02:46.49     Source: Rebuild Index      Executing query "ALTER INDEX [PK_Audit] ON [dbo].[Audit] REBUILD PA...".: 3% complete  End Progress  Progress: 2014-11-26 21:02:46.49     Source: Rebuild
Index      Executing query "USE [finPOWER_Pioneer]  ".: 3% complete  End Progress  Progress: 2014-11-26 21:02:46.53     Source: Rebuild Index      Executing query "ALTER INDEX [PK_Bank]
ON [dbo].[Bank] REBUILD PART...".: 3% complete  End Progress  Progress: 2014-11-26 21:02:46.53     Source: Rebuild Index      Executing query "USE [finPOWER_Pioneer]  ".: 3% complete  End Progress
 Progress: 2014-11-26 21:02:46.53     Source: Rebuild Index      Executing query "ALTER INDEX [PK_BankBranch] ON [dbo].[BankBranch] ...".: 3% complete ...  The package execution fa...  The step failed.
Is there anything else we can do? I just want this to work....

Similar Messages

  • Creating maintenance plan "MaintenancePlan" (Error)

    Hello, I get the error
    Creating maintenance plan "MaintenancePlan" (Error)
    when I try to create a maintenance plan. I checked and the Microsoft Web site and
    other forums said it may be that integration services is not installed so I tried installing it
    and it said that it is already installed.
    The accompanying messages with the report are:
    ADDITIONAL INFORMATION:
    The connection type "ADO.NETQL" specified for connection manager "{C72T6E0B-6CE7-4138-A8D9-BFE8897900700}" is not recognized as a valid connection manager type. This error is returned when an attempt is made to create a connection manager for an unknown connection type. Check the spelling in the connection type name.
    (MaintenancePlan)
    The connection type "ADO.NETQL" specified for connection manager "{C72CT60B-6CE7-4138-A8D9-BFE8897900700}" is not recognized as a valid connection manager type. This error is returned when an attempt is made to create a connection manager for an unknown connection type. Check the spelling in the connection type name.
    (MaintenancePlan)
    - Adding tasks to the maintenance plan (Stopped)
    - Adding scheduling options (Stopped)
    - Adding reporting options (Stopped)
    - Saving maintenance plan "MaintenancePlan" (Stopped)

    Sharp,
    Do you still need help with this?
    Thank you!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • SQL 2008 - Create failed for Job 'MaintenancePlan.subplan_1'

    Hi,
    I'm having difficulty with a server set up by a third party. I am unable to save any Maintenance Plans on the server. When I do this I get the error message Create failed for Job 'MaintenancePlan.subplan_1'.
    The plan will run happily if I kick it off as a manual operation.
    I have tried this from priviledged accounts including (after all else failed) the sa account.
    Does anyone know the cause/solution to the bug?
    Pete

    Hi,
    Does the server have SSIS (SQL Server Integration Services) installed? Some versions of SQL require SSIS to be installed for the maintenance plans to work. What service pack and cumulative update do you have?
    Thanks to Tibor -
    http://sqlblog.com/blogs/tibor_karaszi/archive/2009/08/26/do-maintenance-plans-require-ssis.aspx
    Sean Massey | Consultant, iUNITE
    Feel free to contact me through
    My Blog or
    Twitter.
    Please click the Mark as Answer button if a post solves your problem!

  • Plz explain use of  MeasPoints & counters and counter based MaintenancePlan

    Hi!
    My dear PM Gurus
    Can any body explain how to create the measuring points and counters and detailed steps
    to create a counter based, performance based and condition based maintenance plans, plz.
    Regards
    MDSFR

    Hi
    Create the measuring point for the equipment in IK01. Before you need to create the characteristics for the measuring point in CT04.
    For the Maintenance plans, pls find link below from SAP help
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/f9/548ab8cdeb11d1950e00a0c93029cf/frameset.htm
    Sachin

  • Maintenanceplan failing

    Hi All,
    One of  my SQL Server 2005(SP4) Update statistics maintenance plan is failing some days with the below reason.
    The process cannot access the file 'C:\\Program Files\\Microsoft SQL Server\\MSSQL.1\\MSSQL\\LOG\\MaintenancePlan_UPDATE STATS_20140226234430.txt' because it is being used by another process.
    Please help me how to resolve this issue.
    Thanks in Advance
    A-ZSQL

    Ho Olaf helper,
    Thanks for reply,
    No processes are running at that time. but some days it will finished successfully.
    A-ZSQL
    Hello,
    How are you so sure ,did you checked through process monitor or Procmon ? I think you can use Procmon to actually see what is holding your file.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL Server Maintenance Task

    I have configured a maintenance task that consists of only two T-SQL Statements, one that executes after completion of the other, however it fails and no history is generated. Please advise how I should begin troubleshooting the issue with the maintenance
    task.

    what version\edition of sql are you using? how are you executing your maintenance plans ?? through sql job or straight from maintenance plan. 
    make sure your sql server agent is running. you can get the error log from two places 1. maintenance history 2. job history. these two are integrated..
    try the queries below...
    if the plan was deleted and recreated, the previous history is gone. 
    --maintenance plan history
    use msdb
    go
    select case when d.Succeeded=1 then 'Success' when d.succeeded=0 then 'Failed' End as Result,
    name as [PlanName],b.subplan_name,D.line1,D.line2,D.line3,D.line4,D.line5,D.start_time,D.end_time,D.command,d.Succeeded
    from sysmaintplan_plans a inner join sysmaintplan_subplans b on a.id=b.plan_id
    inner join sysmaintplan_log c on c.plan_id=b.plan_id and c.Subplan_id=b.subplan_id
    inner join sysmaintplan_logdetail d on d.task_detail_id=c.task_detail_id
    --where a.Name='yourmaintenanceplanname'
    ORDER BY D.start_time asc
    GO
    --maintenance plan history from jobs
    select case when b.step_id=0 then 'Final Job Outcome' else 'Job Step '+cast(b.step_id as varchar(20))+':'+b.step_name End as [JobOutCome],d.name as [JobName],
    c.name as [MaintenancePlan],a.subplan_name as [SubPlan_Name],run_date,Run_time,Run_duration,message
    from dbo.sysmaintplan_subplans a inner join
    sysjobhistory b on a.job_id=b.job_id inner join
    sysmaintplan_plans c on c.id=a.plan_id
    inner join msdb.dbo.sysjobs d on d.job_id=b.job_id
    --where c.name='yourmaintenanceplanname'
    order by b.instance_id asc,step_id asc
    Hope it Helps!!

Maybe you are looking for

  • Calculate line price based on adjustments

    Hi Guru's. Could you please help me to prepare a query? Selling price has to be calculated based on unit_list_price & adjustment details. Two tables Order line & Adjustment data. Pricing group sequence is the order of calculating adjustment at every

  • Opening postcript (.ps) file in Illustrator CS5

    Dear all, I am trying to open a postcript file (.ps) in Illustrator, and my problem is that I can access only the first page of the postcript file. I would like to see all following pages as well. The .ps file is generated by a program called Psimpol

  • Jsf 1.2 on j2ee 1.4???

    Hello, Is it possible to run jsf 1.2 (sun ri) on j2ee 1.4?? Thanks in advance, Julien.

  • Why is Nokia 301 so dumb?!?!

    Sorry for the somewhat indescriptive thread title, but with the problems being so far-ranging, it is hard to summarize them, or even remember 'em all. I just upgraded from a C2.1 to the 301. All I want is a sleek, fast, candybar that stays awake for

  • Combining tables with multi-column keys using NOT EQUALS

    Hi, I am trying to perform a query in SQL to find a particular person who has a value for an attribute that nobody else has, so far my query looks like this: SELECT CS1.* FROM COMPANYSTAFF CS1 WHERE NOT EXISTS (SELECT * FROM COMPANYSTAFF CS2 WHERE CS