Error in jobs

  • Quite a few of my sql jobs fails showing error as

    Msg 22029, Sev 16: sqlmaint.exe failed. [SQLSTATE 42000]. Can anyone please let me know what causes this error. any help will be greatly appreciated.

    TIA

  • I am also a  bit surprised that these jobs which are setup to take the backups , the backup is successfully created but job shows a failed status with above error msg. any thoughts why this happened?

    TIA

  • That message is generated whenever a maintenance plan job fails.  Look in 'View job history' in Enterprise Manager and check the steps in the job to see what exactly is failing.

    Greg

    Greg

  • I just read your second post.  Do any of the jobs backup system databases?

    Greg

    Greg

  • Greg,

    the job has only 1 step which is to take the backup of the database. I checked the history too and heres what it says

    The job failed.  The Job was invoked by Schedule 89 (Schedule 1).  The last step to run was step 1 (Step 1).

    TIA

  • The only way I have been able to tell exactly what happened in the SQLMaint task is to view the maintenance plan history (Right-click plan and view history). The other option is to save the report (last tab option in the maint plan) and then view that.

    Of course, the best option is to create your own backup scripts and not use the maintenance plans

    Francis
    -----------------
    SQLRanger.com

  • I don't use maintenance plans to set up backups so I don't have any personal experience with this.  Here are a couple of Knowledge Base articles that might help you pinpoint the problem.

    http://support.microsoft.com/default.aspx?scid=kb;en-us;288577

    http://support.microsoft.com/default.aspx?scid=kb;en-us;326485

    http://support.microsoft.com/default.aspx?scid=kb;en-us;303292

    Greg

    Greg

  • You should have your maint plans create a jog. The error code in the job is worthless, check the log.

  • Heres what the log generates. This is the log that i created in the maint plan.

                                                   

    (null)

    SQLMAINT.EXE Process Exit Code: 1 (Failed)                                                                                                                                                                                                                    

    (null)

    (null)

    Emailing report to operator 'SQLDBA'                                                                                                                                                                                                                          

    (null)

    Msg 22029, Sev 16: sqlmaint.exe failed. [SQLSTATE 42000]

  • I solved this issue by setting database properties for /Options/Recovery Model >  'Full'

    Maintenance Plans succeeded.

    /Henrik

  • That means you were trying to backup the log on databases that were set to simple recovery. I would rework your job and not tamper with system databases that are normally set to simple.

    Wes

  • Changing recovery model is not 'tampering' - but fully allowed. Has impact on performance though.

    http://msdn.microsoft.com/library/en-us/adminsql/ad_bkprst_8ik3.asp

    http://www.winnetmag.com/SQLServer/Article/ArticleID/8551/8551.html

Viewing 12 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic. Login to reply