﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Tim Mitchell / Article Discussions / Article Discussions by Author  / Granting Execute Access to All Stored Procedures to a Given User / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 12:10:14 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face="Times New Roman" size=3&gt;To grant execute permissions to a user for all stored procs in a schema. Using the GUI&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face="Times New Roman" size=3&gt;Right click a stored proc.&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;            &lt;/SPAN&gt;Click properties&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face="Times New Roman" size=3&gt;Click view schema permissions&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face="Times New Roman" size=3&gt;Add&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;            &lt;/SPAN&gt;Object type -&amp;gt; user -&amp;gt; ok&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face="Times New Roman" size=3&gt;Brows&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;            &lt;/SPAN&gt;Choose user -&amp;gt; ok&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT face="Times New Roman" size=3&gt;Click on the user&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;            &lt;/SPAN&gt;Under grant check execute.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;o:p&gt;&lt;FONT face="Times New Roman" size=3&gt; &lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;</description><pubDate>Sun, 25 Mar 2007 18:57:00 GMT</pubDate><dc:creator>Brian Martin</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;FONT color=#111111&gt;If you wanted to avoid usiing extended stored prcedures you could do it like this. It's a bit more understandable than multiple nested select statements that are required for xp_execresultset to work properly...&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;-- Specify the user account which should be&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; @login &lt;SPAN style="COLOR: blue"&gt;VARCHAR&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;(&lt;/SPAN&gt;50&lt;SPAN style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; @login &lt;SPAN style="COLOR: gray"&gt;=&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;'my_user_id'&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: gray"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;DECLARE&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; @sql &lt;SPAN style="COLOR: blue"&gt;VARCHAR&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR: fuchsia"&gt;max&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;Select&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="mso-tab-count: 1"&gt;      &lt;/SPAN&gt;@sql &lt;SPAN style="COLOR: gray"&gt;=&lt;/SPAN&gt; &lt;SPAN style="COLOR: fuchsia"&gt;Coalesce&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;(&lt;/SPAN&gt;@sql&lt;SPAN style="COLOR: gray"&gt;,&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;''&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;)&lt;/SPAN&gt; &lt;SPAN style="COLOR: gray"&gt;+&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;'GRANT &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:place w:st="on"&gt;&lt;st1:City w:st="on"&gt;EXEC&lt;/st1:City&gt; &lt;st1:State w:st="on"&gt;ON&lt;/st1:State&gt;&lt;/st1:place&gt; ['&lt;/SPAN&gt; &lt;SPAN style="COLOR: gray"&gt;+&lt;/SPAN&gt; [name] &lt;SPAN style="COLOR: gray"&gt;+&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;'] TO ['&lt;/SPAN&gt; &lt;SPAN style="COLOR: gray"&gt;+&lt;/SPAN&gt; @login &lt;SPAN style="COLOR: gray"&gt;+&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;']'&lt;/SPAN&gt; &lt;SPAN style="COLOR: gray"&gt;+&lt;/SPAN&gt; &lt;SPAN style="COLOR: blue"&gt;Char&lt;/SPAN&gt;&lt;SPAN style="COLOR: gray"&gt;(&lt;/SPAN&gt;13&lt;SPAN style="COLOR: gray"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;sysobjects &lt;SPAN style="COLOR: blue"&gt;WHERE&lt;/SPAN&gt; xtype &lt;SPAN style="COLOR: gray"&gt;=&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;'P'&lt;/SPAN&gt; &lt;SPAN style="COLOR: gray"&gt;AND&lt;/SPAN&gt; [name] &lt;SPAN style="COLOR: gray"&gt;NOT&lt;/SPAN&gt; &lt;SPAN style="COLOR: gray"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN style="COLOR: red"&gt;'dt_%'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: red"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;EXEC&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt; &lt;SPAN style="COLOR: gray"&gt;(&lt;/SPAN&gt;@sql&lt;SPAN style="COLOR: gray"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: gray"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"&gt;&lt;SPAN style="COLOR: gray"&gt;&lt;img src='images/emotions/wink.gif' height='20' width='20' border='0' title='Wink' align='absmiddle'&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Wed, 13 Dec 2006 06:37:00 GMT</pubDate><dc:creator>robertm</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P&gt;I looked up the bol. What min(name) here do ?&lt;/P&gt;&lt;P&gt;SELECT @procname = min(name)FROM sysobjectsWHERE xtype='P' and name &amp;gt; @procname and name not like 'dt_%'&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description><pubDate>Wed, 13 Dec 2006 05:42:00 GMT</pubDate><dc:creator>Frances L</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P&gt;Cursors are like toilet plungers: you hope you don't have to use them, but it's nice to know how just in case. &lt;img src='images/emotions/sick.gif' height='20' width='20' border='0' title='Sick' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Tue, 13 Dec 2005 19:03:00 GMT</pubDate><dc:creator>Tim Mitchell</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>We had a situation a while back in which a cursor based solution was faster than a t-sql solution.  Note that this was NOT what we were attempting to prove to the developer!  Oh well. </description><pubDate>Tue, 13 Dec 2005 11:46:00 GMT</pubDate><dc:creator>John Scarborough</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P&gt;Everyone is down on Cusors and then they turn right around and use sysobjects in their scripts.  &lt;img src='images/emotions/crazy.gif' height='20' width='20' border='0' title='Crazy' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;Why not use the views Microsoft provided?&lt;/P&gt;&lt;P&gt;SELECT specific_name FROM information_schema.routines where NOT specific_name like ('dt_%')&lt;/P&gt;&lt;P&gt;I mean if you are going to do it the proper way, then do it all by the book. &lt;img src='images/emotions/hehe.gif' height='20' width='20' border='0' title='HeHe' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Tue, 13 Dec 2005 11:14:00 GMT</pubDate><dc:creator>Ted Crafton-214367</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P&gt;I'd vote for creating the "executors" role, adding "execute" permission on all the SPs to that and then adding the user(s) in question to the "executors" role.&lt;/P&gt;&lt;P&gt;Maybe "executors" would be a good addition to the model db.&lt;/P&gt;&lt;P&gt;By the way, where's your defensive "is this a real login" check?  Chalk it up to paranoia, if you like, but I'd have a test in there.&lt;/P&gt;</description><pubDate>Tue, 13 Dec 2005 08:50:00 GMT</pubDate><dc:creator>dlhatheway@mmm.com</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P&gt;&lt;FONT color=#111111&gt;This likely won't make any difference when looping through stored procedure names, but it should be noted that "_" is a wildcard, representing any one character.&lt;/FONT&gt;  &lt;/P&gt;&lt;P&gt;&lt;FONT color=#3333dd&gt;like 'dt_%' &lt;/FONT&gt;&lt;FONT color=#111111&gt;would be better written as &lt;FONT color=#3333dd&gt;like 'dt\_%' escape '\'&lt;/FONT&gt; to force the script to treat the underscore as itself.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Otherwise, great script!  Very useful.&lt;/P&gt;</description><pubDate>Tue, 13 Dec 2005 08:31:00 GMT</pubDate><dc:creator>CDJorg</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P&gt;I can't agree more, there's no way that those 2 words should ever appear in the same sentence &lt;img src='images/emotions/wink.gif' height='20' width='20' border='0' title='Wink' align='absmiddle'&gt;&lt;/P&gt;&lt;P&gt;Oh, wait, how about...&lt;/P&gt;&lt;P&gt;"it's no &lt;STRONG&gt;good&lt;/STRONG&gt;, he's used a &lt;STRONG&gt;cursor&lt;/STRONG&gt; rather than doing it properly with set based logic"&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;good&lt;/STRONG&gt;, said the highly paid consultant, i see that they've used a &lt;STRONG&gt;cursor&lt;/STRONG&gt;; i should be able to make things a little faster if you want to pay me some more money"&lt;/P&gt;&lt;P&gt;(but only for 99.99999 % of cases)&lt;/P&gt;</description><pubDate>Tue, 13 Dec 2005 07:35:00 GMT</pubDate><dc:creator>Mike Metcalf-160221</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>"Good" and "cursor" in the same sentence."Old Fashioned" is OK, it implies that something has worked</description><pubDate>Tue, 13 Dec 2005 07:22:00 GMT</pubDate><dc:creator>David.Poole</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>&lt;P&gt;Yes I'm being picky but doesn't this belong in Scripts rather than articles?&lt;/P&gt;&lt;P&gt;Terry&lt;/P&gt;</description><pubDate>Tue, 13 Dec 2005 06:29:00 GMT</pubDate><dc:creator>TDuffy</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>The code below will do the trick with only one line of code:EXEC master..xp_execresultset N'SELECT ''GRANT EXEC ON ''  + o.name + '' TO '' + ''my_user''   FROM sysobjects o   WHERE xtype = ''P'' AND [name] NOT LIKE ''dt_%'' ', my_dbJust replace my_user and my_db with the correct values.I posted some more nice examples on xp_execresultset my blog some time ago:http://www.vandeputte.org/2005/10/xpexecresultset.htmlKind regards,Frederik</description><pubDate>Tue, 13 Dec 2005 04:10:00 GMT</pubDate><dc:creator>F Vandeputte</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>Just to add that it's often much easier in multi-user environments where more than a couple of users need similar access to create a single role and grant permissions to the role, then you can just add the users to the role to save you time.</description><pubDate>Tue, 13 Dec 2005 02:32:00 GMT</pubDate><dc:creator>Mike Metcalf-160221</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>Whatever happened to using a good old fashioned cursor?</description><pubDate>Tue, 13 Dec 2005 02:31:00 GMT</pubDate><dc:creator>Adam Cruickshank</dc:creator></item><item><title>RE: Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>This might work a bit fasterDECLARE @ProcName sysname ,	@usercredentials sysnameset @procname=''set @usercredentials='Development'WHILE @procname is not null	begin		SELECT @procname = min(name)		FROM sysobjects		WHERE xtype='P' and name &gt; @procname and name not like 'dt_%'		IF @procname is not null			BEGIN				EXEC('GRANT EXECUTE ON ' + @procname+ ' TO ' + @usercredentials)				PRINT 'Execute permissions granted on '+ @procname+ ' TO ' + @usercredentials			END	END</description><pubDate>Tue, 13 Dec 2005 01:53:00 GMT</pubDate><dc:creator>David.Poole</dc:creator></item><item><title>Granting Execute Access to All Stored Procedures to a Given User</title><link>http://www.sqlservercentral.com/Forums/Topic238704-258-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/tmitchell/grantingexecuteaccesstoallstoredprocedurestoagiven.asp"&gt;http://www.sqlservercentral.com/columnists/tmitchell/grantingexecuteaccesstoallstoredprocedurestoagiven.asp&lt;/A&gt;</description><pubDate>Mon, 21 Nov 2005 16:56:00 GMT</pubDate><dc:creator>Tim Mitchell</dc:creator></item></channel></rss>