depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • privacy
  • support
  • videos
  • what is depicus

Remove MSSQL Maintenance Plans after renaming a server

Author: The Man



1. Get the id of the jobs you want to remove, open a query and check you are in MSDB then

SELECT * FROM sysmaintplan_plans

2. Replace with the selected ID and run the DELETE statements

DELETE FROM sysmaintplan_log WHERE plan_id = ’351EDD9C-7154-46EA-B817-A1B036F43C81′
DELETE FROM sysmaintplan_subplans WHERE plan_id = ’351EDD9C-7154-46EA-B817-A1B036F43C81′
DELETE FROM sysmaintplan_plans WHERE id = ’351EDD9C-7154-46EA-B817-A1B036F43C81′

3. Delete the SQL Server Jobs within the Management Studio

All done.

Tweet

This entry was posted on Thursday, October 6th, 2011 at 10:30 am and is filed under Interweb. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.

  • how i pay the bills

  • depicus in africa

    depicus in africa
  • my charity page

    JustGiving - Sponsor me now!
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    IMG_2314 Bisley Developments Ltd IMG_2590 IMG_3276
  • videos

    Vimeo

    YouTube
  • twitter

    • No public Twitter messages.
  • recent comments

    • john coull: correction to above, its www.oakley-ukstore.com
    • john coull: they are at it again. adverts on facebook . they are being hosted by enotch.com on ip address...
    • steve: The site are selling £120+ Oakley sun glasses for £13.00 I think its safe to say they may be either...
    • rob: have received a pair of glasses not what ive ordered they are now telling me the ones ive ordered are out of...
    • phil: hi i have purchased some (stupidly),not arrived yet, will they arrive/will they be fake/plz help

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.