<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Simple Use of Cursor to Print All Stored Procedures of Database</title>
	<atom:link href="http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Using RANKING Functions Instead of SQL Looping Logic of Cursor &#8211; Quiz &#8211; Puzzle &#8211; 8 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-233868</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Using RANKING Functions Instead of SQL Looping Logic of Cursor &#8211; Quiz &#8211; Puzzle &#8211; 8 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Mon, 09 Jan 2012 01:31:11 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-233868</guid>
		<description><![CDATA[[...] Questions and Answers ISBN: 1466405643 Page#128-129  Use INSERT INTO … SELECT instead of Cursor  Simple Use of Cursor to Print All Stored Procedures of Database  Simple Use of Cursor to Print All Stored Procedures of Database Including Schema  Simple Example [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Questions and Answers ISBN: 1466405643 Page#128-129  Use INSERT INTO … SELECT instead of Cursor  Simple Use of Cursor to Print All Stored Procedures of Database  Simple Use of Cursor to Print All Stored Procedures of Database Including Schema  Simple Example [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajneesh Rai</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-158729</link>
		<dc:creator><![CDATA[Rajneesh Rai]]></dc:creator>
		<pubDate>Thu, 18 Aug 2011 07:14:54 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-158729</guid>
		<description><![CDATA[this is a very helpful script and also a good example of cursor..
Thanks Pinal..]]></description>
		<content:encoded><![CDATA[<p>this is a very helpful script and also a good example of cursor..<br />
Thanks Pinal..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garry</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-148778</link>
		<dc:creator><![CDATA[Garry]]></dc:creator>
		<pubDate>Sat, 16 Jul 2011 19:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-148778</guid>
		<description><![CDATA[Thanks, that saved me a fair bit of time. How much of your time have you spent ninja-ing SQL Server? You sound like an epic ninja at it!

Thanks again, Garry.]]></description>
		<content:encoded><![CDATA[<p>Thanks, that saved me a fair bit of time. How much of your time have you spent ninja-ing SQL Server? You sound like an epic ninja at it!</p>
<p>Thanks again, Garry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Geake</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-148493</link>
		<dc:creator><![CDATA[Josh Geake]]></dc:creator>
		<pubDate>Fri, 15 Jul 2011 13:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-148493</guid>
		<description><![CDATA[That was actually another really helpful script, thanks Pinal. How much of your time do you spend in SQL??!]]></description>
		<content:encoded><![CDATA[<p>That was actually another really helpful script, thanks Pinal. How much of your time do you spend in SQL??!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varinder Sandhu</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-135882</link>
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Sat, 21 May 2011 07:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-135882</guid>
		<description><![CDATA[Really Helpful Script]]></description>
		<content:encoded><![CDATA[<p>Really Helpful Script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sree</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-122912</link>
		<dc:creator><![CDATA[sree]]></dc:creator>
		<pubDate>Fri, 11 Mar 2011 20:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-122912</guid>
		<description><![CDATA[Hi,

This articles was very helpful.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This articles was very helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-61059</link>
		<dc:creator><![CDATA[Madhivanan]]></dc:creator>
		<pubDate>Fri, 12 Feb 2010 09:34:41 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-61059</guid>
		<description><![CDATA[Use 

WHERE type = &#039;V&#039;

instead of

WHERE type = &#039;P&#039;]]></description>
		<content:encoded><![CDATA[<p>Use </p>
<p>WHERE type = &#8216;V&#8217;</p>
<p>instead of</p>
<p>WHERE type = &#8216;P&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob Villareal</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44620</link>
		<dc:creator><![CDATA[Bob Villareal]]></dc:creator>
		<pubDate>Mon, 08 Dec 2008 20:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44620</guid>
		<description><![CDATA[How about one for all views (instead of procedures)?]]></description>
		<content:encoded><![CDATA[<p>How about one for all views (instead of procedures)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database Including Schema Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44348</link>
		<dc:creator><![CDATA[SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database Including Schema Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Sat, 22 Nov 2008 01:30:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44348</guid>
		<description><![CDATA[[...] by pinaldave    I love active participation from my readers. Just a day ago I wrote article about SQL SERVER - Simple Use of Cursor to Print All Stored Procedures of Database. I just received comment from Jerry Hung who have improved on previously written article of [...]]]></description>
		<content:encoded><![CDATA[<p>[...] by pinaldave    I love active participation from my readers. Just a day ago I wrote article about SQL SERVER &#8211; Simple Use of Cursor to Print All Stored Procedures of Database. I just received comment from Jerry Hung who have improved on previously written article of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suprotim</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44324</link>
		<dc:creator><![CDATA[Suprotim]]></dc:creator>
		<pubDate>Fri, 21 Nov 2008 07:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44324</guid>
		<description><![CDATA[I wrote a script some time back to show all the Views and UDF&#039;s using different techniques:

http://www.sqlservercurry.com/2008/05/find-out-all-views-in-database-using.html

http://www.sqlservercurry.com/2008/05/find-all-user-defined-functions-in.html]]></description>
		<content:encoded><![CDATA[<p>I wrote a script some time back to show all the Views and UDF&#8217;s using different techniques:</p>
<p><a href="http://www.sqlservercurry.com/2008/05/find-out-all-views-in-database-using.html" rel="nofollow">http://www.sqlservercurry.com/2008/05/find-out-all-views-in-database-using.html</a></p>
<p><a href="http://www.sqlservercurry.com/2008/05/find-all-user-defined-functions-in.html" rel="nofollow">http://www.sqlservercurry.com/2008/05/find-all-user-defined-functions-in.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph Krapp</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44322</link>
		<dc:creator><![CDATA[Christoph Krapp]]></dc:creator>
		<pubDate>Fri, 21 Nov 2008 07:01:57 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44322</guid>
		<description><![CDATA[Hi Pinal

thanks for your Script.

When I copy and paste your various sample codes, i have always a problem with the quotation marks that you are using.
I´m forced to seek and replace them all.
For example  

WHERE type = ‘P’    --- doesn´t work

WHERE type = &#039;P&#039;    --- OK


Maybe you could change that in your editor settings.
Christoph]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal</p>
<p>thanks for your Script.</p>
<p>When I copy and paste your various sample codes, i have always a problem with the quotation marks that you are using.<br />
I´m forced to seek and replace them all.<br />
For example  </p>
<p>WHERE type = ‘P’    &#8212; doesn´t work</p>
<p>WHERE type = &#8216;P&#8217;    &#8212; OK</p>
<p>Maybe you could change that in your editor settings.<br />
Christoph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2008/11/20/sql-server-simple-use-of-cursor-to-print-all-stored-procedures-of-database/#comment-44313</link>
		<dc:creator><![CDATA[Jerry Hung]]></dc:creator>
		<pubDate>Thu, 20 Nov 2008 18:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1544#comment-44313</guid>
		<description><![CDATA[Thanks for the script, however I did notice it won&#039;t work with Schema-objects (such as in AdventureWorks2008)

Here&#039;s my modified script (thanks to tracing SSMS as well)
It essentially does below in AdventureWorks2008

sp_HelpText [dbo].[uspGetManagerEmployees]
sp_HelpText [dbo].[uspGetWhereUsedProductID]
sp_HelpText [dbo].[uspPrintError]
sp_HelpText [HumanResources].[uspUpdateEmployeeHireInfo]
sp_HelpText [dbo].[uspLogError]
sp_HelpText [HumanResources].[uspUpdateEmployeeLogin]
sp_HelpText [HumanResources].[uspUpdateEmployeePersonalInfo]
sp_HelpText [dbo].[uspSearchCandidateResumes]
sp_HelpText [dbo].[uspGetBillOfMaterials]
sp_HelpText [dbo].[uspGetEmployeeManagers]


-- Jerry Hung
DECLARE @procName VARCHAR(100)
DECLARE @getprocName CURSOR
SET @getprocName = CURSOR FOR
--SELECT s.name FROM sysobjects s WHERE TYPE = &#039;P&#039;
SELECT Name = &#039;[&#039; + SCHEMA_NAME(SCHEMA_ID) + &#039;].[&#039; + Name + &#039;]&#039;
FROM sys.all_objects WHERE TYPE = &#039;P&#039;
	AND is_ms_shipped  1


OPEN @getprocName
FETCH NEXT
FROM @getprocName INTO @procName
WHILE @@FETCH_STATUS = 0
BEGIN

	PRINT &#039;sp_HelpText &#039; + @procName
	EXEC sp_HelpText @procName

FETCH NEXT FROM @getprocName INTO @procName
END

CLOSE @getprocName
DEALLOCATE @getprocName
GO]]></description>
		<content:encoded><![CDATA[<p>Thanks for the script, however I did notice it won&#8217;t work with Schema-objects (such as in AdventureWorks2008)</p>
<p>Here&#8217;s my modified script (thanks to tracing SSMS as well)<br />
It essentially does below in AdventureWorks2008</p>
<p>sp_HelpText [dbo].[uspGetManagerEmployees]<br />
sp_HelpText [dbo].[uspGetWhereUsedProductID]<br />
sp_HelpText [dbo].[uspPrintError]<br />
sp_HelpText [HumanResources].[uspUpdateEmployeeHireInfo]<br />
sp_HelpText [dbo].[uspLogError]<br />
sp_HelpText [HumanResources].[uspUpdateEmployeeLogin]<br />
sp_HelpText [HumanResources].[uspUpdateEmployeePersonalInfo]<br />
sp_HelpText [dbo].[uspSearchCandidateResumes]<br />
sp_HelpText [dbo].[uspGetBillOfMaterials]<br />
sp_HelpText [dbo].[uspGetEmployeeManagers]</p>
<p>&#8211; Jerry Hung<br />
DECLARE @procName VARCHAR(100)<br />
DECLARE @getprocName CURSOR<br />
SET @getprocName = CURSOR FOR<br />
&#8211;SELECT s.name FROM sysobjects s WHERE TYPE = &#8216;P&#8217;<br />
SELECT Name = &#8216;[' + SCHEMA_NAME(SCHEMA_ID) + '].[' + Name + ']&#8216;<br />
FROM sys.all_objects WHERE TYPE = &#8216;P&#8217;<br />
	AND is_ms_shipped  1</p>
<p>OPEN @getprocName<br />
FETCH NEXT<br />
FROM @getprocName INTO @procName<br />
WHILE @@FETCH_STATUS = 0<br />
BEGIN</p>
<p>	PRINT &#8216;sp_HelpText &#8216; + @procName<br />
	EXEC sp_HelpText @procName</p>
<p>FETCH NEXT FROM @getprocName INTO @procName<br />
END</p>
<p>CLOSE @getprocName<br />
DEALLOCATE @getprocName<br />
GO</p>
]]></content:encoded>
	</item>
</channel>
</rss>
