Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

how do i stop a maintenance plan?

 
   Database Forums (Home) -> Server RSS
Next:  The multi-part identifier "alias.field"..  
Author Message
Dan Holmes

External


Since: May 23, 2008
Posts: 50



(Msg. 1) Posted: Thu Mar 11, 2010 9:38 am
Post subject: how do i stop a maintenance plan?
Archived from groups: microsoft>public>sqlserver>server (more info?)

I have a maintenance plan that runs every night. Sometimes it takes too long to run and it affects production for the
following morning. I can see and kill the process it is currently running but then the next task starts and i have to
kill that too. How can i stop the thing once it has started?

thanks

sqlserver 2005

 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
Jay Konigsberg

External


Since: Mar 04, 2010
Posts: 6



(Msg. 2) Posted: Thu Mar 11, 2010 9:38 am
Post subject: Re: how do i stop a maintenance plan? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Manually, or automatically?

SSMS has a right-click menu on the job, but that is manual.

--
Jay Konigsberg
SQL Server DBA in Sacramento, CA
http://www.linkedin.com/in/jaykonigsberg

Live in Sacramento, CA?
Join the Sacramento SQL Server User Group on LinkedIn
http://www.linkedin.com/groups?home=&gid=2825448&trk=anet_ug_hm&goback=%2Emyg



"Dan Holmes" wrote in message

>I have a maintenance plan that runs every night. Sometimes it takes too
>long to run and it affects production for the following morning. I can see
>and kill the process it is currently running but then the next task starts
>and i have to kill that too. How can i stop the thing once it has started?
>
> thanks
>
> sqlserver 2005

 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
Chris Wood

External


Since: Jun 29, 2007
Posts: 72



(Msg. 3) Posted: Thu Mar 11, 2010 11:50 am
Post subject: Re: how do i stop a maintenance plan? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dan,

Does this happen on certain days of the week? If you knew what caused it to
run longer you could schedule differently.

Chris

"Dan Holmes" wrote in message

>I have a maintenance plan that runs every night. Sometimes it takes too
>long to run and it affects production for the following morning. I can see
>and kill the process it is currently running but then the next task starts
>and i have to kill that too. How can i stop the thing once it has started?
>
> thanks
>
> sqlserver 2005
 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
David Hay

External


Since: May 12, 2008
Posts: 27



(Msg. 4) Posted: Thu Mar 11, 2010 1:13 pm
Post subject: Re: how do i stop a maintenance plan? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dan,

This is a bit of a sledge hammer but....

You could also get a list of running jobs at 6:00 AM (pick your target
time here), if any of the jobs are the ones created by the maint plan,
then execute a sp_stop_job against it. It will finish up the last
piece it was working on but then should die. if you had to you could
just execute a sp_stop_job for each of the jobs in the maint plan.
Not sure if it will fail or jot if the job is not running. Test test
test!

http://msdn.microsoft.com/en-us/library/aa260308%28SQL.80%29.aspx

my 2 cents!

David Hay

On Mar 11, 9:38 am, Dan Holmes wrote:
> I have a maintenance plan that runs every night.  Sometimes it takes too long to run and it affects production for the
> following morning.  I can see and kill the process it is currently running but then the next task starts and i have to
> kill that too.  How can i stop the thing once it has started?
>
> thanks
>
> sqlserver 2005
 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 1649



(Msg. 5) Posted: Thu Mar 11, 2010 6:25 pm
Post subject: Re: how do i stop a maintenance plan? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dan Holmes (dan.holmes@routematch.com) writes:
> I have a maintenance plan that runs every night. Sometimes it takes too
> long to run and it affects production for the following morning. I can
> see and kill the process it is currently running but then the next task
> starts and i have to kill that too. How can i stop the thing once it
> has started?

Maybe you should review what the Mgmt Plans are doing altogether? Are
you rebuilding too many indexes? You are not shrinking databases, I hope?

--
Erland Sommarskog, SQL Server MVP, esquel.RemoveThis@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
Jay Konigsberg

External


Since: Mar 04, 2010
Posts: 6



(Msg. 6) Posted: Thu Mar 11, 2010 6:25 pm
Post subject: Re: how do i stop a maintenance plan? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> Maybe you should review what the Mgmt Plans are doing altogether? Are
> you rebuilding too many indexes? You are not shrinking databases, I hope?

+1

--
Jay Konigsberg
SQL Server DBA in Sacramento, CA
http://www.linkedin.com/in/jaykonigsberg

Live in Sacramento, CA?
Join the Sacramento SQL Server User Group on LinkedIn
http://www.linkedin.com/groups?home=&gid=2825448&trk=anet_ug_hm&goback=%2Emyg



"Erland Sommarskog" wrote in message

> Dan Holmes (dan.holmes@routematch.com) writes:
>> I have a maintenance plan that runs every night. Sometimes it takes too
>> long to run and it affects production for the following morning. I can
>> see and kill the process it is currently running but then the next task
>> starts and i have to kill that too. How can i stop the thing once it
>> has started?
>
> Maybe you should review what the Mgmt Plans are doing altogether? Are
> you rebuilding too many indexes? You are not shrinking databases, I hope?
>
> --
> Erland Sommarskog, SQL Server MVP, esquel RemoveThis @sommarskog.se
>
> Links for SQL Server Books Online:
> SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
> SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
> SQL 2000:
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>
 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
Tibor Karaszi

External


Since: Jan 29, 2004
Posts: 891



(Msg. 7) Posted: Fri Mar 12, 2010 3:25 am
Post subject: Re: how do i stop a maintenance plan? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

+1

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi



"Jay Konigsberg" wrote in message
news:#S9Gp6WwKHA.1796@TK2MSFTNGP02.phx.gbl...
>> Maybe you should review what the Mgmt Plans are doing altogether? Are
>> you rebuilding too many indexes? You are not shrinking databases, I hope?
>
> +1
>
> --
> Jay Konigsberg
> SQL Server DBA in Sacramento, CA
> http://www.linkedin.com/in/jaykonigsberg
>
> Live in Sacramento, CA?
> Join the Sacramento SQL Server User Group on LinkedIn
> http://www.linkedin.com/groups?home=&gid=2825448&trk=anet_ug_hm&goback=%2Emyg
>
>
>
> "Erland Sommarskog" wrote in message
>
>> Dan Holmes (dan.holmes@routematch.com) writes:
>>> I have a maintenance plan that runs every night. Sometimes it takes too
>>> long to run and it affects production for the following morning. I can
>>> see and kill the process it is currently running but then the next task
>>> starts and i have to kill that too. How can i stop the thing once it
>>> has started?
>>
>> Maybe you should review what the Mgmt Plans are doing altogether? Are
>> you rebuilding too many indexes? You are not shrinking databases, I hope?
>>
>> --
>> Erland Sommarskog, SQL Server MVP, esquel DeleteThis @sommarskog.se
>>
>> Links for SQL Server Books Online:
>> SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
>> SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
>> SQL 2000:
>> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>>
>
>
 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
TheSQLGuru

External


Since: Mar 23, 2007
Posts: 261



(Msg. 8) Posted: Fri Mar 12, 2010 9:22 am
Post subject: Re: how do i stop a maintenance plan? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Agreed. Maintenance plans should be avoided and you should control
everything that you MIGHT want/need to do with them using TSQL scripts and
Agent jobs. A quick engagement with a consultant can get you where you need
to be in short order. Or Ola Hallengren has a WONDERFUL collection of free
TSQL scripts that you can use to control all major maintenance activies.
http://ola.hallengren.com/

--
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net


"Erland Sommarskog" wrote in message

> Dan Holmes (dan.holmes@routematch.com) writes:
>> I have a maintenance plan that runs every night. Sometimes it takes too
>> long to run and it affects production for the following morning. I can
>> see and kill the process it is currently running but then the next task
>> starts and i have to kill that too. How can i stop the thing once it
>> has started?
>
> Maybe you should review what the Mgmt Plans are doing altogether? Are
> you rebuilding too many indexes? You are not shrinking databases, I hope?
>
> --
> Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se
>
> Links for SQL Server Books Online:
> SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
> SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
> SQL 2000:
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>
 >> Stay informed about: how do i stop a maintenance plan? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Database maintenance plan backup - I've created a database maintenance plan with backup database task which is set to back up the transaction logs of several specified databases. I open up the backup database task, then choose <select one or more> from the Database(s) prompt. Wh...

SQL 2000 Maintenance Plan - SQL 2000 SP4 running on 2k3 SP2 maintenance plan isn't working quite right. The plan backups up all databases (full) once a day, backups up all databases once an hour during business hours (transaction) and removes any files older than 2 days for bot...

Failed on runnning maintenance backup plan but.... - Hi, Thank you for your help in advance... We are running SQL 2K Sp3. For some reason, the maintenance plan (both backup and optimize) stopped running. I made sure the SQL agent running but the job never ran successfully. It ran fine before for long..

SQL 2005 Maintenance Plan Output - We're running SQL 2005 SP2. I've run into a problem w\output from a db backup maintenance plan. The maintenance plan runs a Back Up Database Task and the output is written to the file I specified. When I add a Maintenance Cleanup Task to the job the..

cannot create maintenance plan - error 17828 - I have just updated an existing SQL Server Express server to SQL Server Developer Edition 9.0.1399. In general this has worked fine, but I cannot create a Maintenance Plan, either using the Wizard or by using "New Maintenance Plan..." The la...
   Database Forums (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]