Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 maintenance plan error: DTSER_FAILURE
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 12/02/2013 :  15:50:47  Show Profile  Reply with Quote
Hello, when I create a maintenance plan only for integrity check, i got the error. I have tried many things, nothing worked.

Executed as user: KO\SQLServiceAcct. Microsoft (R) SQL Server Execute Package Utility Version 10.50.4000.0 for 64-bit Copyright (C) Microsoft Corporation 2010. All rights reserved. Started: 12:52:59 PM Progress: 2013-12-02 12:53:00.27 Source: {B0196E8F-9241-4D80-8878-9A1A03B04080} Executing query "DECLARE @Guid UNIQUEIDENTIFIER EXECUTE msdb..sp...".: 100% complete End Progress DTExec: The package execution returned DTSER_FAILURE (1). Started: 12:52:59 PM Finished: 12:53:00 PM Elapsed: 0.656 seconds. The package execution failed. The step failed.

Almighty SQL Goddess

38200 Posts

Posted - 12/02/2013 :  15:56:22  Show Profile  Visit tkizer's Homepage  Reply with Quote
I would skip a maintenance plan for integrity checks. Here is what I use:


DECLARE @dbId int, @dbName sysname, @SQL nvarchar(4000)

SELECT @dbId = 0

WHILE @dbId < (SELECT MAX(database_id) FROM master.sys.databases WHERE database_id > @dbId AND state IN (0, 4))
      SELECT TOP 1 @dbId = database_id, @dbName = name
      FROM master.sys.databases
      WHERE database_id > @dbId AND state IN (0, 4)
      ORDER BY database_id


      EXEC sp_executesql @statement = @SQL

Just create a new Agent job and then use that as the job step.

Tara Kizer
SQL Server MVP since 2007
Go to Top of Page

Aged Yak Warrior

819 Posts

Posted - 12/03/2013 :  13:16:56  Show Profile  Reply with Quote
To see exactly what is happening in your maintenance plan - you need to view the maintenance plan history and not the agent job history. Under the Maintenance Plan in Object Explorer, highlight your maintenance plan and View History.

This will tell you what the actual error is that is causing the plan to fail.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000