<?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>Benchmark IT Consulting &#187; SQLAgentReaderRole</title>
	<atom:link href="http://benchmarkitconsulting.com/tag/sqlagentreaderrole/feed/" rel="self" type="application/rss+xml" />
	<link>http://benchmarkitconsulting.com</link>
	<description>My Thoughts on SQL Server and anything else I can think of...</description>
	<lastBuildDate>Tue, 07 Sep 2010 19:46:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Creating a REAL SQLAgentReaderRole</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/creating-a-real-sqlagentreaderrole/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/creating-a-real-sqlagentreaderrole/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 20:37:41 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[msdb]]></category>
		<category><![CDATA[SQLAgentReaderRole]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=344</guid>
		<description><![CDATA[So if you follow me blog you will probably remember this post from earlier today: http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/ Below is the solution I&#8217;m working with to give developers access to the Job Activity Monitor but NOT the ability to create new jobs. I know adding a role to a system database is not ideal but I&#8217;m open [...]]]></description>
			<content:encoded><![CDATA[<p>So if you follow me blog you will probably remember this post from earlier today:</p>
<p><a href="http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/" target="_blank">http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/</a></p>
<p>Below is the solution I&#8217;m working with to give developers access to the Job Activity Monitor but NOT the ability to create new jobs.</p>
<p>I know adding a role to a system database is not ideal but I&#8217;m open to other suggestions <img src='http://benchmarkitconsulting.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><code style="font-size: 12px;"><span style="color:black"><br /></span><span style="color:blue">USE </span><span style="color:black">[msdb]<br />GO<br /></span><span style="color:blue">CREATE </span><span style="color:black">ROLE [SQLAgentReadOnlyRole] </span><span style="color:blue">AUTHORIZATION </span><span style="color:black">[dbo]<br />GO<br /></span><span style="color:blue">EXEC </span><span style="color:darkred">sp_addrolemember </span><span style="color:red">N&#39;SQLAgentReaderRole&#39;</span><span style="color:gray">, </span><span style="color:red">N&#39;SQLAgentReadOnlyRole&#39;<br /></span><span style="color:black">GO<br /></span><span style="color:blue">DENY EXECUTE ON </span><span style="color:black">OBJECT::msdb.dbo.</span><span style="color:darkred">sp_add_job </span><span style="color:blue">TO </span><span style="color:black">SQLAgentReadOnlyRole<br /></span><span style="color:blue">DENY EXECUTE ON </span><span style="color:black">OBJECT::msdb.dbo.</span><span style="color:darkred">sp_add_jobserver </span><span style="color:blue">TO </span><span style="color:black">SQLAgentReadOnlyRole<br /></span><span style="color:blue">DENY EXECUTE ON </span><span style="color:black">OBJECT::msdb.dbo.</span><span style="color:darkred">sp_add_jobstep </span><span style="color:blue">TO </span><span style="color:black">SQLAgentReadOnlyRole<br /></span><span style="color:blue">DENY EXECUTE ON </span><span style="color:black">OBJECT::msdb.dbo.</span><span style="color:darkred">sp_update_job </span><span style="color:blue">TO </span><span style="color:black">SQLAgentReadOnlyRole<br /></span><span style="color:blue">DENY EXECUTE ON </span><span style="color:black">OBJECT::msdb.dbo.</span><span style="color:darkred">sp_add_jobschedule </span><span style="color:blue">TO </span><span style="color:black">SQLAgentReadOnlyRole</span></code></p>
<p>So after you create your new SQLAgentReadRoleRole you can add role members to it and they will be able to view the Job Activity Monitor but will not be able to create new jobs&#8230; use at your own risk as like I said&#8230; I&#8217;m still working with it but this is the direction I&#8217;m heading right now.</p>
<p>If anyone has a more elegant solution I&#8217;d be very interested in seeing it.</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Creating+a+REAL+SQLAgentReaderRole+http://tinyurl.com/7p38wd" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/creating-a-real-sqlagentreaderrole/&amp;title=Creating+a+REAL+SQLAgentReaderRole" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/creating-a-real-sqlagentreaderrole/&amp;title=Creating+a+REAL+SQLAgentReaderRole" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/creating-a-real-sqlagentreaderrole/&amp;title=Creating+a+REAL+SQLAgentReaderRole" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/creating-a-real-sqlagentreaderrole/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>SQLAgentReaderRole &#8211; not so reader?</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 18:31:01 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[msdb]]></category>
		<category><![CDATA[SQLAgentReaderRole]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=342</guid>
		<description><![CDATA[Quick&#8230; how do you give someone read only access to the Job Activity Monitor? Why you grant them SQLAgentReaderRole access in msdb&#8230;. WRONG http://technet.microsoft.com/en-us/library/ms188283.aspx The SQLAgentReaderRole is a reader role for the jobs that currently exist but wait here is where the good (or bad depending on if you&#8217;re in a good mood or not) [...]]]></description>
			<content:encoded><![CDATA[<p>Quick&#8230; how do you give someone read only access to the Job Activity Monitor?</p>
<p>Why you grant them SQLAgentReaderRole access in msdb&#8230;. WRONG</p>
<p><a href="http://technet.microsoft.com/en-us/library/ms188283.aspx" target="_blank">http://technet.microsoft.com/en-us/library/ms188283.aspx</a></p>
<p>The SQLAgentReaderRole is a reader role for the jobs that currently exist but wait here is where the good (or bad depending on if you&#8217;re in a good mood or not) part comes in.</p>
<p>Me &#8211; &#8220;Hey Mr Developer I made this change in UAT you should now be able to view the job activity monitor&#8230; just for my own curiousity I&#8217;m going to come by can you try to execute, delete, update jobs that are there.  &#8221;</p>
<p>Mr Developer &#8211; &#8220;nope&#8230; can&#8217;t do anything like that&#8221;</p>
<p>Me &#8211; &#8220;Great&#8230; can you create a new job&#8221;</p>
<p>Mr Developer &#8211; &#8220;Yup&#8221;</p>
<p>Me &#8211; &#8221; *sigh* I hate (and by hate I mean it in a love/hate kinda way) Microsoft</p>
<p>That&#8217;s right folks&#8230; SQLAgentReaderRole can create jobs.  So although it&#8217;s called SQLAgentReaderRole be careful granting this access cause whomever you add to this role can create new jobs.</p>
<p>UPDATE will come if/when I find or create a usable solution</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=SQLAgentReaderRole+%26%238211%3B+not+so+reader%3F+http://tinyurl.com/89pj3o" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/&amp;title=SQLAgentReaderRole+%26%238211%3B+not+so+reader%3F" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/&amp;title=SQLAgentReaderRole+%26%238211%3B+not+so+reader%3F" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/&amp;title=SQLAgentReaderRole+%26%238211%3B+not+so+reader%3F" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/01/21/sqlagentreaderrole-not-so-reader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
