<?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; Find Column Used in Stored Procedure &#8211; Search Stored Procedure for Column Name &#8211; Part 2</title>
	<atom:link href="http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Thu, 20 Jun 2013 10:56:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: raina</title>
		<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/#comment-382202</link>
		<dc:creator><![CDATA[raina]]></dc:creator>
		<pubDate>Tue, 27 Nov 2012 21:54:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19873#comment-382202</guid>
		<description><![CDATA[Can anyone tell me if there is a way to get the list of all the columns used in a stored procedure and also their table names?]]></description>
		<content:encoded><![CDATA[<p>Can anyone tell me if there is a way to get the list of all the columns used in a stored procedure and also their table names?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sabeel</title>
		<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/#comment-353308</link>
		<dc:creator><![CDATA[sabeel]]></dc:creator>
		<pubDate>Wed, 26 Sep 2012 13:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19873#comment-353308</guid>
		<description><![CDATA[This script search only stored procedure for specified column.
-- Search in Stored Procedure Only
SELECT DISTINCT OBJECT_NAME(OBJECT_ID),
object_definition(OBJECT_ID)
FROM sys.Procedures
WHERE object_definition(OBJECT_ID) LIKE &#039;%&#039; + &#039;BusinessEntityID&#039; + &#039;%&#039;

if the column is alias in the stored procedure . how we can search it]]></description>
		<content:encoded><![CDATA[<p>This script search only stored procedure for specified column.<br />
&#8211; Search in Stored Procedure Only<br />
SELECT DISTINCT OBJECT_NAME(OBJECT_ID),<br />
object_definition(OBJECT_ID)<br />
FROM sys.Procedures<br />
WHERE object_definition(OBJECT_ID) LIKE &#8216;%&#8217; + &#8216;BusinessEntityID&#8217; + &#8216;%&#8217;</p>
<p>if the column is alias in the stored procedure . how we can search it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitu</title>
		<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/#comment-316371</link>
		<dc:creator><![CDATA[Nitu]]></dc:creator>
		<pubDate>Fri, 20 Jul 2012 12:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19873#comment-316371</guid>
		<description><![CDATA[Very useful 
thanks for sharing]]></description>
		<content:encoded><![CDATA[<p>Very useful<br />
thanks for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLMind</title>
		<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/#comment-315823</link>
		<dc:creator><![CDATA[SQLMind]]></dc:creator>
		<pubDate>Thu, 19 Jul 2012 10:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19873#comment-315823</guid>
		<description><![CDATA[Very informative...I learnt something new today :)]]></description>
		<content:encoded><![CDATA[<p>Very informative&#8230;I learnt something new today :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalyanasundaram.K</title>
		<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/#comment-315788</link>
		<dc:creator><![CDATA[Kalyanasundaram.K]]></dc:creator>
		<pubDate>Thu, 19 Jul 2012 08:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19873#comment-315788</guid>
		<description><![CDATA[Hi Gatej,

using this below script to check a column and its table. Do few changes in this script to check a column in more than one table in database.

--Searching for Empoloyee table and ChangeDate column together
SELECT Name FROM sys.procedures
WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE &#039;%Empoloyee %&#039;	
AND OBJECT_DEFINITION(OBJECT_ID) LIKE &#039;%ChangeDate%&#039;			
GO

http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/]]></description>
		<content:encoded><![CDATA[<p>Hi Gatej,</p>
<p>using this below script to check a column and its table. Do few changes in this script to check a column in more than one table in database.</p>
<p>&#8211;Searching for Empoloyee table and ChangeDate column together<br />
SELECT Name FROM sys.procedures<br />
WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE &#8216;%Empoloyee %&#8217;<br />
AND OBJECT_DEFINITION(OBJECT_ID) LIKE &#8216;%ChangeDate%&#8217;<br />
GO</p>
<p><a href="http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/" rel="nofollow">http://blog.sqlauthority.com/2007/09/03/sql-server-2005-search-stored-procedure-code-search-stored-procedure-text/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gatej Alexandru</title>
		<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/#comment-315711</link>
		<dc:creator><![CDATA[Gatej Alexandru]]></dc:creator>
		<pubDate>Thu, 19 Jul 2012 06:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19873#comment-315711</guid>
		<description><![CDATA[Hello

I have one question: How can you detect your column if you have multiple tables that contain a column with your searched name]]></description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>I have one question: How can you detect your column if you have multiple tables that contain a column with your searched name</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalyanasundaram.K</title>
		<link>http://blog.sqlauthority.com/2012/07/19/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name-part-2/#comment-315655</link>
		<dc:creator><![CDATA[Kalyanasundaram.K]]></dc:creator>
		<pubDate>Thu, 19 Jul 2012 04:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19873#comment-315655</guid>
		<description><![CDATA[Hi Pinal,

I had noted the script and test it all related to search in Stored procedures and other objects. It is very useful to learn and minimize developers confusion to verify all the procedures. Earlier i am only using sp_help only.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I had noted the script and test it all related to search in Stored procedures and other objects. It is very useful to learn and minimize developers confusion to verify all the procedures. Earlier i am only using sp_help only.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
