Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
dbthj
Posting Yak Master
143 Posts |
Posted - 2007-10-30 : 10:29:13
|
SQL 2000I have a maintenance plan that only runs stats and shrinks a database. It hasn't been running. I saw nothing wrong with the setup so I created another one yesterday. It was created by and owned by sa, scheduled to run at 11:59 PM Monday Night. Schedule enabled. 11:59 PM came and went and there is nothing at all in the Plan history or job history. Nothing in sysdbmainplan_history and nothing in sysjobhistory. I'll post plan properties and job properties below.PLAN PROPERTIESGeneral Tab:These Databases: (one database checked)Optimizations Tab:Update statistics/sample 20%Remove unused space from database/shrink when grows beyond 50 MBSchedule Occurs every 1 week(s) on Monday, at 11:59:00 PM.EnabledStart date: 10/29/2007End date: 11/6/2007Integrity tab: nothing checkedComplete Backup tab: nothing checkedTransaction Log Backup tab: nothing checkedReporting tab: Write report to text fileDelete reports older than 4 wksWrite history to table/limit table to 1000 rows for this plan==============================================================JOB PROPERTIESGeneral Tab:EnabledTarget local serverOwner: saSteps Tab: EXECUTE master.dbo.xp_sqlmaint N'-PlanID BE50AB70-E39A-4C47-97EF-EFF296848F61 -Rpt "D:\Program Files\Microsoft SQL Server\MSSQL\LOG\Test Monday ShrinkJob0.txt" -DelTxtRpt 4WEEKS -WriteHistory -UpdOptiStats 20 -RmUnusedSpace 50 10 'On success action: Quit the job reporting successRetry attempts: 0On failure action: Quit the job reporting failureRun as user: selfSchedule Tab:Recurring: Occurs every 1 week(s) on Monday at 11:59:00 PM.Start date: 10/29/2007End date 11/6/2007Notifications Tab:Write to Windows application log When the job succeeds.=============================================This thing doesn't fail. It just plain doesn't run. |
|
Kristen
Test
22859 Posts |
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-10-30 : 23:34:03
|
Is sql agent service running? |
 |
|
dbthj
Posting Yak Master
143 Posts |
Posted - 2007-11-01 : 14:19:33
|
Duh!!.....The Agent is set to start automatically. Didn't do it - or somebody stopped it.And I didn't think to check.Anyhow, problem solved. Thanks. |
 |
|
Kristen
Test
22859 Posts |
Posted - 2007-11-01 : 15:08:55
|
There's a "Restart SQL Agent if stops unexpectedly" optionI'm not sure its bullet-proof, but worth ticking that box!We have a NET START xxx for all critical services that runs every 10 minutes - so if anything stops and doesn't automatically restart the scheduled BATch file "tickles" it.Kristen |
 |
|
|
|
|