<?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</title>
	<atom:link href="http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-424413</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 20 Feb 2013 13:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-424413</guid>
		<description><![CDATA[EXEC sp_depends &#039;procedure name&#039;]]></description>
		<content:encoded><![CDATA[<p>EXEC sp_depends &#8216;procedure name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: siva</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-424331</link>
		<dc:creator><![CDATA[siva]]></dc:creator>
		<pubDate>Wed, 20 Feb 2013 09:27:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-424331</guid>
		<description><![CDATA[How to get the list of all tables present in a particular(single) stored procedure ?]]></description>
		<content:encoded><![CDATA[<p>How to get the list of all tables present in a particular(single) stored procedure ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-421382</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 13 Feb 2013 13:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-421382</guid>
		<description><![CDATA[EXEC sp_depends &#039;procedure name&#039;]]></description>
		<content:encoded><![CDATA[<p>EXEC sp_depends &#8216;procedure name&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashok kumar j</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-414622</link>
		<dc:creator><![CDATA[ashok kumar j]]></dc:creator>
		<pubDate>Tue, 29 Jan 2013 12:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-414622</guid>
		<description><![CDATA[Hi pinal i want to list out if the tabled used inside the sp then i want to list out it 
so search column like &#039;tables&#039;

can we get this in sql?????]]></description>
		<content:encoded><![CDATA[<p>Hi pinal i want to list out if the tabled used inside the sp then i want to list out it<br />
so search column like &#8216;tables&#8217;</p>
<p>can we get this in sql?????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RadhaKrishna k</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-412190</link>
		<dc:creator><![CDATA[RadhaKrishna k]]></dc:creator>
		<pubDate>Thu, 24 Jan 2013 07:07:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-412190</guid>
		<description><![CDATA[how to  add table new column name in insert_stored procedure]]></description>
		<content:encoded><![CDATA[<p>how to  add table new column name in insert_stored procedure</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-377198</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 20 Nov 2012 06:48:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-377198</guid>
		<description><![CDATA[Refer this post
http://beyondrelational.com/modules/2/blogs/70/posts/10812/select-columns-from-exec-procedurename-is-this-possible.aspx]]></description>
		<content:encoded><![CDATA[<p>Refer this post<br />
<a href="http://beyondrelational.com/modules/2/blogs/70/posts/10812/select-columns-from-exec-procedurename-is-this-possible.aspx" rel="nofollow">http://beyondrelational.com/modules/2/blogs/70/posts/10812/select-columns-from-exec-procedurename-is-this-possible.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: smc</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-373149</link>
		<dc:creator><![CDATA[smc]]></dc:creator>
		<pubDate>Mon, 12 Nov 2012 21:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-373149</guid>
		<description><![CDATA[Could you post something on how do use output from a stored procedure  in a Create View script?]]></description>
		<content:encoded><![CDATA[<p>Could you post something on how do use output from a stored procedure  in a Create View script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dataset.ReadXML or &#8216;O Schema, Where Art Thou&#8217;</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-352698</link>
		<dc:creator><![CDATA[Dataset.ReadXML or &#8216;O Schema, Where Art Thou&#8217;]]></dc:creator>
		<pubDate>Mon, 24 Sep 2012 17:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-352698</guid>
		<description><![CDATA[[...] Databases, Tables, Columns&#8230;Using PLV8 to build JSON selectors - Postgres OnLine JournalSQL SERVER &#8211; Find Column Used in Stored Procedure &#8211; Search Stored Procedure for Column N...   var base_url_sociable = [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Databases, Tables, Columns&#8230;Using PLV8 to build JSON selectors &#8211; Postgres OnLine JournalSQL SERVER &#8211; Find Column Used in Stored Procedure &#8211; Search Stored Procedure for Column N&#8230;   var base_url_sociable = [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elumalai K</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-326888</link>
		<dc:creator><![CDATA[Elumalai K]]></dc:creator>
		<pubDate>Wed, 08 Aug 2012 03:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-326888</guid>
		<description><![CDATA[what about sp_depends &#039;stored_procedurename&#039;]]></description>
		<content:encoded><![CDATA[<p>what about sp_depends &#8216;stored_procedurename&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Keip</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-318322</link>
		<dc:creator><![CDATA[Mathias Keip]]></dc:creator>
		<pubDate>Tue, 24 Jul 2012 07:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-318322</guid>
		<description><![CDATA[Hi Jerry, 

yes you can do this. The corresponding type for triggers is TR:

SELECT obj.Name SPName, sc.TEXT SPText
FROM sys.syscomments sc
INNER JOIN sys.objects obj ON sc.Id = obj.OBJECT_ID
WHERE sc.TEXT LIKE &#039;%&#039; + &#039;Name Your Column Here&#039; + &#039;%&#039;
AND TYPE = &#039;TR&#039;]]></description>
		<content:encoded><![CDATA[<p>Hi Jerry, </p>
<p>yes you can do this. The corresponding type for triggers is TR:</p>
<p>SELECT obj.Name SPName, sc.TEXT SPText<br />
FROM sys.syscomments sc<br />
INNER JOIN sys.objects obj ON sc.Id = obj.OBJECT_ID<br />
WHERE sc.TEXT LIKE &#8216;%&#8217; + &#8216;Name Your Column Here&#8217; + &#8216;%&#8217;<br />
AND TYPE = &#8216;TR&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Find Column Used in Stored Procedure &#8211; Search Stored Procedure for Column Name &#8211; Part 2 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-315547</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Find Column Used in Stored Procedure &#8211; Search Stored Procedure for Column Name &#8211; Part 2 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Thu, 19 Jul 2012 01:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-315547</guid>
		<description><![CDATA[[...] this week I wrote a blog about Find Column Used in Stored Procedure – Search Stored Procedure for Column Name. I received plenty of comments on the subject. One of the statements which I used in the story [...]]]></description>
		<content:encoded><![CDATA[<p>[...] this week I wrote a blog about Find Column Used in Stored Procedure – Search Stored Procedure for Column Name. I received plenty of comments on the subject. One of the statements which I used in the story [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-314445</link>
		<dc:creator><![CDATA[Jerry]]></dc:creator>
		<pubDate>Tue, 17 Jul 2012 07:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-314445</guid>
		<description><![CDATA[Hi Pinal,
Can you do the same for triggers?
Jerry]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
Can you do the same for triggers?<br />
Jerry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Keip</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-314001</link>
		<dc:creator><![CDATA[Mathias Keip]]></dc:creator>
		<pubDate>Mon, 16 Jul 2012 07:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-314001</guid>
		<description><![CDATA[You can also use the INFORMATION_SCHEMA:

DECLARE @column_name SYSNAME;

SELECT ROUTINE_TYPE, ROUTINE_SCHEMA, ROUTINE_NAME
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_DEFINITION LIKE &#039;%&#039; + @column_name + &#039;%&#039;
UNION 
SELECT &#039;VIEW&#039;, TABLE_SCHEMA, TABLE_NAME
FROM INFORMATION_SCHEMA.VIEWS
WHERE VIEW_DEFINITION LIKE &#039;%&#039; + @column_name + &#039;%&#039;]]></description>
		<content:encoded><![CDATA[<p>You can also use the INFORMATION_SCHEMA:</p>
<p>DECLARE @column_name SYSNAME;</p>
<p>SELECT ROUTINE_TYPE, ROUTINE_SCHEMA, ROUTINE_NAME<br />
FROM INFORMATION_SCHEMA.ROUTINES<br />
WHERE ROUTINE_DEFINITION LIKE &#8216;%&#8217; + @column_name + &#8216;%&#8217;<br />
UNION<br />
SELECT &#8216;VIEW&#8217;, TABLE_SCHEMA, TABLE_NAME<br />
FROM INFORMATION_SCHEMA.VIEWS<br />
WHERE VIEW_DEFINITION LIKE &#8216;%&#8217; + @column_name + &#8216;%&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313888</link>
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Mon, 16 Jul 2012 01:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313888</guid>
		<description><![CDATA[Another very important &quot;feature&quot; of syscomments is that it contains only 4000 characters per record. If your object contains more than that, it will be broken up in multiple records. There&#039;s a good chance that an word will be seperated between those 2 records and that you will be missing a dependency... Much safer to use sql_modules!]]></description>
		<content:encoded><![CDATA[<p>Another very important &#8220;feature&#8221; of syscomments is that it contains only 4000 characters per record. If your object contains more than that, it will be broken up in multiple records. There&#8217;s a good chance that an word will be seperated between those 2 records and that you will be missing a dependency&#8230; Much safer to use sql_modules!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Wang</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313705</link>
		<dc:creator><![CDATA[Steven Wang]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 14:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313705</guid>
		<description><![CDATA[to search syscomments is a very inefficient way and should be avoided.

I will suggest this script as below:

Declare @TableName sysname;
Declare @SchemaName sysname;
Declare @FullTableName nvarchar(256);
Declare @ColumnName sysname;

Set		 @SchemaName = &#039;dbo&#039;	--change your schema name
Set		 @TableName = &#039;Your_Table&#039;	--change your table name
Set		 @FullTableName = QuoteName(@SchemaName) + &#039;.&#039; + QUOTENAME(@TableName)
Set		 @ColumnName = &#039;Col_Name&#039;	--change your column name		


SELECT	QuoteName(A.referencing_schema_name) + &#039;.&#039; + QUOTENAME(A.Referencing_entity_name) As Object_Name
		, O.type_desc As Object_Type
		, M.definition As Object_Definition 
FROM	sys.dm_sql_referencing_entities (@FullTableName, &#039;Object&#039;) A
			Inner Join
		sys.objects O
			On A.referencing_id = O.object_id
			Inner Join
		sys.sql_modules M
			On A.referencing_id = M.object_id
			CroSS Apply
		(
			Select	*
			From	sys.dm_sql_referenced_entities(QuoteName(A.referencing_schema_name) + &#039;.&#039; + QUOTENAME(A.Referencing_entity_name), &#039;Object&#039;) B
			Where	B.referenced_minor_name =  @ColumnName
		) C]]></description>
		<content:encoded><![CDATA[<p>to search syscomments is a very inefficient way and should be avoided.</p>
<p>I will suggest this script as below:</p>
<p>Declare @TableName sysname;<br />
Declare @SchemaName sysname;<br />
Declare @FullTableName nvarchar(256);<br />
Declare @ColumnName sysname;</p>
<p>Set		 @SchemaName = &#8216;dbo&#8217;	&#8211;change your schema name<br />
Set		 @TableName = &#8216;Your_Table&#8217;	&#8211;change your table name<br />
Set		 @FullTableName = QuoteName(@SchemaName) + &#8216;.&#8217; + QUOTENAME(@TableName)<br />
Set		 @ColumnName = &#8216;Col_Name&#8217;	&#8211;change your column name		</p>
<p>SELECT	QuoteName(A.referencing_schema_name) + &#8216;.&#8217; + QUOTENAME(A.Referencing_entity_name) As Object_Name<br />
		, O.type_desc As Object_Type<br />
		, M.definition As Object_Definition<br />
FROM	sys.dm_sql_referencing_entities (@FullTableName, &#8216;Object&#8217;) A<br />
			Inner Join<br />
		sys.objects O<br />
			On A.referencing_id = O.object_id<br />
			Inner Join<br />
		sys.sql_modules M<br />
			On A.referencing_id = M.object_id<br />
			CroSS Apply<br />
		(<br />
			Select	*<br />
			From	sys.dm_sql_referenced_entities(QuoteName(A.referencing_schema_name) + &#8216;.&#8217; + QUOTENAME(A.Referencing_entity_name), &#8216;Object&#8217;) B<br />
			Where	B.referenced_minor_name =  @ColumnName<br />
		) C</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313579</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 06:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313579</guid>
		<description><![CDATA[Good one!]]></description>
		<content:encoded><![CDATA[<p>Good one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313578</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 06:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313578</guid>
		<description><![CDATA[Excellent Imran - loved it!]]></description>
		<content:encoded><![CDATA[<p>Excellent Imran &#8211; loved it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313577</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 06:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313577</guid>
		<description><![CDATA[excellent point. I totally agree!]]></description>
		<content:encoded><![CDATA[<p>excellent point. I totally agree!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dattatrey Sindol (Datta)</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313574</link>
		<dc:creator><![CDATA[Dattatrey Sindol (Datta)]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 06:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313574</guid>
		<description><![CDATA[But since &quot;sys.syscomments&quot; is marked for removal in future (http://msdn.microsoft.com/en-us/library/ms186293.aspx), I think we should use &quot;sys.sql_modules&quot; or &quot;information_schema.routines&quot;. Thoughts ?]]></description>
		<content:encoded><![CDATA[<p>But since &#8220;sys.syscomments&#8221; is marked for removal in future (<a href="http://msdn.microsoft.com/en-us/library/ms186293.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms186293.aspx</a>), I think we should use &#8220;sys.sql_modules&#8221; or &#8220;information_schema.routines&#8221;. Thoughts ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313521</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 02:52:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313521</guid>
		<description><![CDATA[Ahh.... I see some one already posted it.. but anyways... 

--================================
SQL Server 2005 and above
--================================

-- Below searches all objects (Procedures, views, triggers, functions)
Select 	distinct object_name(object_id)
from	sys.all_sql_modules
Where definition like &#039;%search text%&#039;

-- If you just want to search stored procedures.
Select distinct object_name(object_id)
from	sys.Procedures
Where object_definition(object_id) like &#039;%search text%&#039;

--================================
SQL Server 2000 and below
--================================
-- Below searches in definition of all objects (Views, triggers, functions)
Select	distinct Object_Name(id)
From 	Syscomments
Where 	text like &#039;%search text%&#039;

~ IM.]]></description>
		<content:encoded><![CDATA[<p>Ahh&#8230;. I see some one already posted it.. but anyways&#8230; </p>
<p>&#8211;================================<br />
SQL Server 2005 and above<br />
&#8211;================================</p>
<p>&#8211; Below searches all objects (Procedures, views, triggers, functions)<br />
Select 	distinct object_name(object_id)<br />
from	sys.all_sql_modules<br />
Where definition like &#8216;%search text%&#8217;</p>
<p>&#8211; If you just want to search stored procedures.<br />
Select distinct object_name(object_id)<br />
from	sys.Procedures<br />
Where object_definition(object_id) like &#8216;%search text%&#8217;</p>
<p>&#8211;================================<br />
SQL Server 2000 and below<br />
&#8211;================================<br />
&#8211; Below searches in definition of all objects (Views, triggers, functions)<br />
Select	distinct Object_Name(id)<br />
From 	Syscomments<br />
Where 	text like &#8216;%search text%&#8217;</p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313515</link>
		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 02:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313515</guid>
		<description><![CDATA[Red Gate&#039;s SQL Search is free.  
http://www.red-gate.com/products/sql-development/sql-search/]]></description>
		<content:encoded><![CDATA[<p>Red Gate&#8217;s SQL Search is free.<br />
<a href="http://www.red-gate.com/products/sql-development/sql-search/" rel="nofollow">http://www.red-gate.com/products/sql-development/sql-search/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chalapathi Pinisetty</title>
		<link>http://blog.sqlauthority.com/2012/07/15/sql-server-find-column-used-in-stored-procedure-search-stored-procedure-for-column-name/#comment-313514</link>
		<dc:creator><![CDATA[Chalapathi Pinisetty]]></dc:creator>
		<pubDate>Sun, 15 Jul 2012 01:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=19822#comment-313514</guid>
		<description><![CDATA[Hi Pinal,

I always use below method to search column or content which I required in the procedure.

SELECT
Object_Name(Object_Id)
FROM
sys.sql_modules
WHERE
definition LIKE ‘%Your column name%’
AND definition LIKE ‘% Procedure %’

sys.sql_modules:
Returns a row for each object that is an SQL language-defined module. Objects of type P, RF, V, TR, FN, IF, TF, and R have an associated SQL module. Stand-alone defaults, objects of type D, also have an SQL module definition in this view. For a description of these types, see the type column in the sys.objects catalog view.

Reference: http://msdn.microsoft.com/en-us/library/ms175081.aspx

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I always use below method to search column or content which I required in the procedure.</p>
<p>SELECT<br />
Object_Name(Object_Id)<br />
FROM<br />
sys.sql_modules<br />
WHERE<br />
definition LIKE ‘%Your column name%’<br />
AND definition LIKE ‘% Procedure %’</p>
<p>sys.sql_modules:<br />
Returns a row for each object that is an SQL language-defined module. Objects of type P, RF, V, TR, FN, IF, TF, and R have an associated SQL module. Stand-alone defaults, objects of type D, also have an SQL module definition in this view. For a description of these types, see the type column in the sys.objects catalog view.</p>
<p>Reference: <a href="http://msdn.microsoft.com/en-us/library/ms175081.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms175081.aspx</a></p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
