|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 19, 2012 7:10 AM
Points: 5,
Visits: 10
|
|
We have two different Maintenance plan for system database and user database doing reindexing for system db whereas reindexing and integrity check for user
db.These jobs are getting failed continuously and the output file too is not generating at destination path although reporting option is enabled.
Job failed description is :
Message Executed as user: "accountname". sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.
SQL Error Log simply mentions :
Error: 60000, Severity: 17, State: 1. (Jobfailure found for [Maintenance System DBs - Optimization]) Error: 60000, Severity: 17, State: 1. (Jobfailure found for [Optimizations Job for DB Maintenance Plan 'Maintenance User DBs'])
Event Log generates warning :
Event ID is 208 Source SQL SERVER AGENT
SQL Server Scheduled Job 'Maintenance System DBs - Optimization' (0x62AB06599226E545827C7D255D9B9D1C) - Status: Failed - Invoked on: 2012-12-15 20:30:00 - Message: The job failed. The Job was invoked by Schedule 2 (Daily at 8:30pm). The last step to run was step 1 (Step 1). For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
If anybody have any idea or solution please suggest.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 9:56 AM
Points: 4,418,
Visits: 7,156
|
|
Open the task in the maintenance plan and click on the View T-SQL button. Copy the code that is generated and paste it into SSMS. If you run it from there, you'll be able to see all the errors that occur.
John
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 19, 2012 7:10 AM
Points: 5,
Visits: 10
|
|
HI John,
Thanks for prompt reply.......but i am not able to view the option of view TSQL as mentioned by you.Can you please elaborate more or any screnshot if possible.Its SQL Server 2005 SP2 Standard Edition.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 9:56 AM
Points: 4,418,
Visits: 7,156
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 19, 2012 7:10 AM
Points: 5,
Visits: 10
|
|
Hi John,
Thanks for the screen shot....but when i am clicking on view T-SQL,its not generating any T-SQL.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 9:56 AM
Points: 4,418,
Visits: 7,156
|
|
Is that the case for the integrity check and the index rebuild tasks? Which databases do you have selected?
John
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, December 19, 2012 7:10 AM
Points: 5,
Visits: 10
|
|
| I have selected master and msdb database and script is not generating for rebuild index.
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Yesterday @ 9:56 AM
Points: 4,418,
Visits: 7,156
|
|
Yes, the same happens for me if I choose those databases. Maybe the Rebuild Index Task doesn't include system tables. Do you have a particular reason for wanting to reindex those databases? Normally they're fairly static so they don't get too fragmented. Possible exceptions are tables such as backupfile and sysmaintplan_logdetail in msdb, but you can write your own code to keep them in trim.
John
|
|
|
|