<?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; 2005 2000 &#8211; Search String in Stored Procedure</title>
	<atom:link href="http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marek Śliwiński</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-48095</link>
		<dc:creator>Marek Śliwiński</dc:creator>
		<pubDate>Thu, 05 Mar 2009 10:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-48095</guid>
		<description>thx!</description>
		<content:encoded><![CDATA[<p>thx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chanchal Gaud</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-46850</link>
		<dc:creator>Chanchal Gaud</dc:creator>
		<pubDate>Wed, 18 Feb 2009 12:01:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-46850</guid>
		<description>select objs.name,* from sys.objects objs
INNER JOIN sys.sql_modules mods on
objs.object_id = mods.object_id
where objs.type = ‘P’
and definition like ‘%your_search_string_here%’

In this case i have your_search_string_here = %
I need those strings which contain the % as string....
example it should give me all the strings like 
&#039;abcd % abcd&#039;,ad%sd&#039; etc.......</description>
		<content:encoded><![CDATA[<p>select objs.name,* from sys.objects objs<br />
INNER JOIN sys.sql_modules mods on<br />
objs.object_id = mods.object_id<br />
where objs.type = ‘P’<br />
and definition like ‘%your_search_string_here%’</p>
<p>In this case i have your_search_string_here = %<br />
I need those strings which contain the % as string&#8230;.<br />
example it should give me all the strings like<br />
&#8216;abcd % abcd&#8217;,ad%sd&#8217; etc&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-46240</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Mon, 02 Feb 2009 13:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-46240</guid>
		<description>Thanks, just what I wanted.

In case you have tables which start with the same name:

SELECT Name
    FROM sys.procedures
    WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE &#039;%Employee%&#039;
	AND NOT OBJECT_DEFINITION(OBJECT_ID) LIKE &#039;%EmployeeDetails%&#039;</description>
		<content:encoded><![CDATA[<p>Thanks, just what I wanted.</p>
<p>In case you have tables which start with the same name:</p>
<p>SELECT Name<br />
    FROM sys.procedures<br />
    WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE &#8216;%Employee%&#8217;<br />
	AND NOT OBJECT_DEFINITION(OBJECT_ID) LIKE &#8216;%EmployeeDetails%&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gorcer</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-44093</link>
		<dc:creator>gorcer</dc:creator>
		<pubDate>Fri, 07 Nov 2008 05:37:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-44093</guid>
		<description>thank&#039;s!!</description>
		<content:encoded><![CDATA[<p>thank&#8217;s!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shishir Khandekar</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-41767</link>
		<dc:creator>Shishir Khandekar</dc:creator>
		<pubDate>Mon, 18 Aug 2008 20:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-41767</guid>
		<description>If you need a sp_depends alternative (sp_depends does not always work), here&#039;s a crude script. I am selecting all columns but you can trip down as per your needs. This will basically search for a string in an object which is type P, RF, V, TR, FN, IF, TF, and R:

-------
select objs.name,* from sys.objects objs
INNER JOIN sys.sql_modules mods on
objs.object_id = mods.object_id
where objs.type = &#039;P&#039;
and definition like &#039;%your_search_string_here%&#039;
-------

Useful to see which object is referenced by which other object.

-Shishir</description>
		<content:encoded><![CDATA[<p>If you need a sp_depends alternative (sp_depends does not always work), here&#8217;s a crude script. I am selecting all columns but you can trip down as per your needs. This will basically search for a string in an object which is type P, RF, V, TR, FN, IF, TF, and R:</p>
<p>&#8212;&#8212;-<br />
select objs.name,* from sys.objects objs<br />
INNER JOIN sys.sql_modules mods on<br />
objs.object_id = mods.object_id<br />
where objs.type = &#8216;P&#8217;<br />
and definition like &#8216;%your_search_string_here%&#8217;<br />
&#8212;&#8212;-</p>
<p>Useful to see which object is referenced by which other object.</p>
<p>-Shishir</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Gonzalez</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-41455</link>
		<dc:creator>Eric Gonzalez</dc:creator>
		<pubDate>Thu, 07 Aug 2008 18:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-41455</guid>
		<description>This is what I was looking for, thanks

Eric</description>
		<content:encoded><![CDATA[<p>This is what I was looking for, thanks</p>
<p>Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pierre Cornelissen</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-38811</link>
		<dc:creator>Pierre Cornelissen</dc:creator>
		<pubDate>Tue, 27 May 2008 07:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-38811</guid>
		<description>Thanks, this works very well.  What I would have like is to see is sort of the line numbers associated with the objects, and perhaps a replace script as well.  Any pointers would be welcome.

Pierre</description>
		<content:encoded><![CDATA[<p>Thanks, this works very well.  What I would have like is to see is sort of the line numbers associated with the objects, and perhaps a replace script as well.  Any pointers would be welcome.</p>
<p>Pierre</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aarthi</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-37952</link>
		<dc:creator>Aarthi</dc:creator>
		<pubDate>Tue, 13 May 2008 17:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-37952</guid>
		<description>Thanks..worked like a charm!</description>
		<content:encoded><![CDATA[<p>Thanks..worked like a charm!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elena</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-33788</link>
		<dc:creator>Elena</dc:creator>
		<pubDate>Fri, 15 Feb 2008 18:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-33788</guid>
		<description>Thank you very much! This was really helpful and saved me tons of work. Elena</description>
		<content:encoded><![CDATA[<p>Thank you very much! This was really helpful and saved me tons of work. Elena</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rafi</title>
		<link>http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-24589</link>
		<dc:creator>rafi</dc:creator>
		<pubDate>Thu, 06 Dec 2007 12:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/10/sql-server-2005-2000-search-string-in-stored-procedure/#comment-24589</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
