<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Edwin M Sarmientojob owners &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/category/job-owners/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>The Return of the Living Dead:Job Owners who Keep Coming Back</title>
		<link>https://www.edwinmsarmiento.com/the-return-of-the-living-deadjob-owners-who-keep-coming-back/</link>
		<comments>https://www.edwinmsarmiento.com/the-return-of-the-living-deadjob-owners-who-keep-coming-back/#respond</comments>
		<pubDate>Fri, 13 Mar 2009 03:57:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[database maintenance plans]]></category>
		<category><![CDATA[job owners]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2009/03/13/the-return-of-the-living-deadjob-owners-who-keep-coming-back</guid>

				<description><![CDATA[Have you ever had the feeling that SQL Server was playing a trick on you? I had those moments. I was updating a database maintenance plan and ran the corresponding job associated with it. I got an error saying that the job owner did not have permissions to execute the task. So I did what [&#8230;]]]></description>
					<content:encoded><![CDATA[<p><span style="font-family:arial;">Have you ever had the feeling that SQL Server was playing a trick on you? I had those moments. I was updating a database maintenance plan and ran the corresponding job associated with it. I got an error saying that the job owner did not have permissions to execute the task. So I did what I would do as part of my testing procedure- change the job owner to <strong>sa</strong> and re-ran. And so it completed successfully until I realized I need to change some parameters in the database maintenance plan. After updating the maintenance plan, I again re-ran the same job and unexpectedly, it failed throwing the same error. When I checked the job owner, it reverted back to the original login prior to me changing it to <strong>sa</strong>. This login happens to be the user account that created the database maintenance plan. The worse part is, the maintenance plan has like 20+ subplans, each creating a SQL Server job. Now, you wouldn&#8217;t want to change the job owner for each job associated with the maintenance job every time you change something, would you? Well, there&#8217;s just no way you can do it directly. But there&#8217;s always a workaround. This <a href="http://sqlblogcasts.com/blogs/acalvett/archive/2007/12/30/the-job-whose-owner-kept-coming-back.aspx">blog post</a> provided a workaround for this case. You just modify the <strong><span style="font-size:85%;">sysdtspackages90</span></strong> table in the <strong><span style="font-size:85%;">msdb</span></strong> database </span></p>
<p><span style="font-size:85%;"><span style="color:blue;"><strong>UPDATE<br />
</strong></span><span style="color:black;"><strong>msdb.dbo.sysdtspackages90<br />
</strong></span><strong><span style="color:blue;">SET<br />
</span><span style="color:black;">OWNERSID </span><span style="color:blue;">= </span><span style="color:magenta;">SUSER_SID</span><span style="color:gray;">(</span><span style="color:red;">&#8216;DOMAINnew_user&#8217;</span></strong><span style="color:gray;"><strong>)<br />
</strong></span><strong><span style="color:blue;">WHERE<br />
</span><span style="color:black;">OWNERSID </span><span style="color:blue;">= </span><span style="color:magenta;">SUSER_SID</span><span style="color:gray;">(</span><span style="color:red;">&#8216;DOMAINold_user&#8217;</span></strong><span style="color:gray;"><strong>)</strong><br />
</span></span><br />
<span style="font-family:arial;color:#000000;">For <strong>SQL Server 2008</strong>, this query should do the trick </span><br />
<span style="font-family:arial;color:#000000;"><br />
</span><span style="font-size:85%;"><span style="font-size:85%;"><span style="color:blue;"><strong>UPDATE </strong></span><strong><span style="color:black;">msdb.dbo.sysssispackages<br />
</span><span style="color:blue;">SET </span><span style="color:black;">OWNERSID </span><span style="color:blue;">= </span><span style="color:magenta;">SUSER_SID</span><span style="color:gray;">(</span><span style="color:red;">&#8216;DOMAINnew_user&#8217;</span></strong><strong><span style="color:gray;">)<br />
</span><span style="color:blue;">WHERE </span><span style="color:black;">name </span><span style="color:blue;">= </span><span style="color:red;">&#8216;MaintenancePlan&#8217;</span></strong></span> <strong><span style="color:#000099;">AND</span></strong> <strong>OWNERSID</strong> = <strong><span style="color:#cc66cc;">SUSER_SID</span></strong><span style="color:#c0c0c0;">(</span><span style="color:#ff0000;"><strong>&#8216;DOMAINold_user&#8217;</strong></span><span style="color:#c0c0c0;">)</span><br />
</span><span style="font-size:85%;"><span style="color:gray;"><br />
</span></span><span style="font-family:arial;color:#000000;">There&#8217;s currently a <a href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=295846">Microsoft Connect</a> item for this case so feel free to vote on it if you think it&#8217;s worth having a solution that just a workaround</span></p>
<div class="blogger-post-footer"><img decoding="async" src="" alt="" width="1" height="1" /></div>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/the-return-of-the-living-deadjob-owners-who-keep-coming-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">169</post-id>	</item>
	</channel>
</rss>