Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

Change maintenance plan owner

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Early - 24 Dec 2007 19:14 GMT
I would like to change the owner of several maintenance plans.  I can't seem
to find a way to that without recreating each plan while connected as the new
owner.  Is there a method similar to changing a job's owner via the job's
properties or a database's by sp_changedbowner?

Thanks
Russell Fields - 24 Dec 2007 21:56 GMT
Jim,

Sorry, I don't know a neat way to change the maintenance plan owner.  (In
SQL Server 2000, you can go through the process to modify system tables and
change the 'owner' column of msdb.dbo.sysdbmaintplans (although I don't
recommend it) but in SQL Server 2005 that avenue has been closed.)

You can, of course, change the job owner that runs the maintenance plan as
you already described.  Is there a reason that the maintenance plan owner
needs to be changed?  What side effects are you experiencing?

RLF

>I would like to change the owner of several maintenance plans.  I can't
>seem
[quoted text clipped - 4 lines]
>
> Thanks
jed - 02 Jan 2008 17:00 GMT
Changing the owner of the job only works until the maintenance plan is
modified, then the jobs reverts back to the owner of the maintenance plan.  
You might review this article:  
http://sqlblogcasts.com/blogs/acalvett/archive/2007/12/30/the-job-whose-owner-ke
pt-coming-back.aspx


> Jim,
>
[quoted text clipped - 17 lines]
> >
> > Thanks
Russell Fields - 02 Jan 2008 19:22 GMT
Interesting.  Thanks, RLF

> Changing the owner of the job only works until the maintenance plan is
> modified, then the jobs reverts back to the owner of the maintenance plan.
[quoted text clipped - 26 lines]
>> >
>> > Thanks
EJ - 24 Mar 2008 00:05 GMT
I encountered the same issue with the Maintenance Plan, when I made a change
to the MaintPlan, the Job changed to that of the owner of the MaintPlan.  
According to some reading I have been doing, there really isn’t a way to
change the Maintenance Plan Owner yet, I do understand why the MaintPlan
owner needs to be changed.  In my case, the old DBA has been moved to another
section and no longer have rights to the SQL Server yet, when a change is
made to the MaintPlan, the job defaults to his name and the job fails.  Also,
if the person is no longer an employee of the company yet, he created the
plans under his account, the MaintPlan defaults to his account or the account
he used when in SQL.

What I did to change the Owner of all Maintenance Plans in SQL 2005 was, if
you use windows authentication in SQL “run as” the SQL account that is the
manager of SQL or connect to SQL using the SQL Account that manages your SQL.
From there, modify the Maintenance Plan, such as rename it, then rename it
back; the MaintPlan will assume the account you are using as the ‘owner’.

This may be tedious but it works…

> I would like to change the owner of several maintenance plans.  I can't seem
> to find a way to that without recreating each plan while connected as the new
> owner.  Is there a method similar to changing a job's owner via the job's
> properties or a database's by sp_changedbowner?
>
> Thanks
Coding Solutions - 27 Mar 2008 14:00 GMT
/*Here's how to change the owner of a maintenance plan to dbo in SQL Server
2005*/
--to find the name and owner of the maintenance plan
--select * from msdb.dbo.sysdtspackages90
--to find the sid you want to use for the new owner
--select * from sysusers

UPDATE
    [msdb].[dbo].[sysdtspackages90]
SET
    [ownersid] = 0x01
WHERE
    [name] = 'MaintenancePlan'
Coding Solutions - 27 Mar 2008 14:00 GMT
/*Here's how to change the owner of a maintenance plan to dbo in SQL Server
2005*/
--to find the name and owner of the maintenance plan
--select * from msdb.dbo.sysdtspackages90
--to find the sid you want to use for the new owner
--select * from sysusers

UPDATE
    [msdb].[dbo].[sysdtspackages90]
SET
    [ownersid] = 0x01
WHERE
    [name] = 'MaintenancePlan'
       

> I would like to change the owner of several maintenance plans.  I can't seem
> to find a way to that without recreating each plan while connected as the new
> owner.  Is there a method similar to changing a job's owner via the job's
> properties or a database's by sp_changedbowner?
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.