dbTalk Databases Forums  

Maintainance Plans Disappeared from SSMS

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Maintainance Plans Disappeared from SSMS in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Hills
 
Posts: n/a

Default Maintainance Plans Disappeared from SSMS - 01-27-2009 , 06:45 AM






One of my maintenance plans has mysteriously disappeared out of the
management studio. Does anyone know where they are stored inside the database
and if I can get them out as a script to recreate the plan.

I have a complete backup of the system databases

Could I create an new sequel instance and restore the system databases?

Thanks


David Hills

--
Thanks



David Hills

Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Maintainance Plans Disappeared from SSMS - 01-27-2009 , 08:57 AM






If it disappeared then most likely someone deleted it. In any case it is
probably much easier to just recreate the plan from scratch using the
wizard.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"David Hills" <DavidHills (AT) discussions (DOT) microsoft.com> wrote

Quote:
One of my maintenance plans has mysteriously disappeared out of the
management studio. Does anyone know where they are stored inside the
database
and if I can get them out as a script to recreate the plan.

I have a complete backup of the system databases

Could I create an new sequel instance and restore the system databases?

Thanks


David Hills

--
Thanks



David Hills


Reply With Quote
  #3  
Old   
Terry Carnes
 
Posts: n/a

Default How to Use Activity Monitor - 01-27-2009 , 09:04 AM



I am a programmer acting as DBA for our SQL Server 2005 and 2000
installations. Although I am comfortable with designing databases and stored
procedures, and setting up maintenance and backup schedules, I'm totally
clueless about what to do if SQL calls start timing out. I'll dutifully open
up the Activity Monitor and look at the Process Info and Locks by Process
and Object, but have little idea what I'm looking at, nor what to do if I
find something locked that shouldn't be.

Can someone point me to a good online article or book that would help teach
me this area of SQL Server administration?


Reply With Quote
  #4  
Old   
Tibor Karaszi
 
Posts: n/a

Default Re: Maintainance Plans Disappeared from SSMS - 01-27-2009 , 10:21 AM



Or (just a wild guess), the server is sp2 and the SSMS is pre-sp2 so
it doesn't understand the maint plan and because of that doesn't show
it. Again, just a wild guess...

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


"Andrew J. Kelly" <sqlmvpnooospam (AT) shadhawk (DOT) com> wrote

Quote:
If it disappeared then most likely someone deleted it. In any case
it is probably much easier to just recreate the plan from scratch
using the wizard.

--
Andrew J. Kelly SQL MVP
Solid Quality Mentors


"David Hills" <DavidHills (AT) discussions (DOT) microsoft.com> wrote in
message news:261E7FE2-3E26-40CD-8680-3EFB8C67F8B7 (AT) microsoft (DOT) com...
One of my maintenance plans has mysteriously disappeared out of the
management studio. Does anyone know where they are stored inside
the database
and if I can get them out as a script to recreate the plan.

I have a complete backup of the system databases

Could I create an new sequel instance and restore the system
databases?

Thanks


David Hills

--
Thanks



David Hills




Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: How to Use Activity Monitor - 01-27-2009 , 04:51 PM



Terry Carnes (tcarnes (AT) reedfax (DOT) com) writes:
Quote:
I am a programmer acting as DBA for our SQL Server 2005 and 2000
installations. Although I am comfortable with designing databases and
stored procedures, and setting up maintenance and backup schedules, I'm
totally clueless about what to do if SQL calls start timing out. I'll
dutifully open up the Activity Monitor and look at the Process Info and
Locks by Process and Object, but have little idea what I'm looking at,
nor what to do if I find something locked that shouldn't be.

Can someone point me to a good online article or book that would help
teach me this area of SQL Server administration?
First of all, in case you don't know the timeout is in the client API,
and does not happen in SQL Server (unless you are playing with lock
timeouts or use linked servers).

The cause for a timeout is one of two things:
1) The query is taking longer the time to execute than the client will
allow. The default timeout is thirty seconds.
2) Blocking.

In the first case, it may be perfectly normal, although it may also be
that the query needs tuning. But you can set the timeout on the connection
object to 0, which means wait forever. Then you, or whichever the user,
has the power decide on your own how long to wait.

In case of blocking, well that is likely to resolve sooner or later
as well, but if it is an orphaned transaction in a query window, that
typically requires manual intervention.

The quick way to check for blocking is to use sp_who or sp_who2. If
there is a row with a non-zero value in the Blk column, there is blocking
and the number in Blk is the spid for the blocker, and the spid on
that row is blocked.

If there is no blocking, then your query is taking a long time in which
case you may need to investigate query plans and indexes.



--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) 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/prodinf...ons/books.mspx



Reply With Quote
  #6  
Old   
David Hills
 
Posts: n/a

Default RE: Maintainance Plans Disappeared from SSMS - 01-28-2009 , 04:37 AM



this thread has been kidnapped!!!

Can I ask my question again

where inside the data base is the maintainance plans stored.

Can I get them out in a usable fashion some how.

I have a full system backup
--
Thanks



David Hills


"David Hills" wrote:

Quote:
One of my maintenance plans has mysteriously disappeared out of the
management studio. Does anyone know where they are stored inside the database
and if I can get them out as a script to recreate the plan.

I have a complete backup of the system databases

Could I create an new sequel instance and restore the system databases?

Thanks


David Hills

--
Thanks



David Hills

Reply With Quote
  #7  
Old   
Aaron Bertrand [SQL Server MVP]
 
Posts: n/a

Default Re: Maintainance Plans Disappeared from SSMS - 01-28-2009 , 09:12 AM



Good luck!

select * from msdb.dbo.sysmaintplan_subplans
select * from msdb.dbo.sysdbmaintplans
select * from msdb.dbo.sysdbmaintplan_jobs
select * from msdb.dbo.sysdbmaintplan_databases

(Or, as it has been suggested, it will be less work to re-create them from
scratch, especially if you don't find them in there.)


On 1/28/09 5:37 AM, in article
C0A5C056-D338-4E8C-A3F0-046D223CA258...soft (DOT) com, "David Hills"
<DavidHills (AT) discussions (DOT) microsoft.com> wrote:

Quote:
this thread has been kidnapped!!!

Can I ask my question again

where inside the data base is the maintainance plans stored.

Can I get them out in a usable fashion some how.

I have a full system backup


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.