<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Search - free tool for searching your SQL Server</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2010/02/11/sql-search-free-tool-for-searching-your-sql-server.aspx</link><description>I downloaded Red Gate's new free utility SQL Search http://www.red-gate.com/products/SQL_Search/index.htm earlier this week. A coworker just asked me if there is an easy way to search all stored procedures for a specific string. SQL Search was the answer!</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: SQL Search - free tool for searching your SQL Server</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2010/02/11/sql-search-free-tool-for-searching-your-sql-server.aspx#22167</link><pubDate>Thu, 11 Feb 2010 17:28:20 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22167</guid><dc:creator>AaronBertrand</dc:creator><description>&lt;p&gt;John, the &amp;quot;many rows&amp;quot; problem is only true if you are still using SQL Server 2000. &amp;nbsp;In SQL Server 2005 and up, the sys.sql_modules.definition column is actually NVARCHAR(MAX), and you will only ever find one row per object, so the string splitting part isn't an issue. &amp;nbsp;You can also use the OBJECT_DEFINITION() function, which returns a single NVARCHAR(MAX) value as well.&lt;/p&gt;
&lt;p&gt;I wrote about how I do this in my environment here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://sqlblog.com/blogs/aaron_bertrand/archive/2009/11/09/18684.aspx"&gt;http://sqlblog.com/blogs/aaron_bertrand/archive/2009/11/09/18684.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That said, I do agree that for a free tool, this one is definitely worth a look. &amp;nbsp;It does have several features that would be difficult to reproduce with native tools and without a lot of hard work.&lt;/p&gt;
</description></item><item><title>re: SQL Search - free tool for searching your SQL Server</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2010/02/11/sql-search-free-tool-for-searching-your-sql-server.aspx#22179</link><pubDate>Thu, 11 Feb 2010 18:24:58 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22179</guid><dc:creator>John Paul Cook</dc:creator><description>&lt;p&gt;Quite correct as always, Aaron. I removed that tangent from the post. Thanks for the correction.&lt;/p&gt;
</description></item><item><title>re: SQL Search - free tool for searching your SQL Server</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2010/02/11/sql-search-free-tool-for-searching-your-sql-server.aspx#22189</link><pubDate>Thu, 11 Feb 2010 19:29:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22189</guid><dc:creator>jerryhung</dc:creator><description>&lt;p&gt;Too bad SQL Search doesn't work on SQL 2000, only on 2005/2008&lt;/p&gt;
&lt;p&gt;but it's such a nice add-on to have for SSMS&lt;/p&gt;
</description></item><item><title>re: SQL Search - free tool for searching your SQL Server</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2010/02/11/sql-search-free-tool-for-searching-your-sql-server.aspx#22192</link><pubDate>Thu, 11 Feb 2010 20:17:32 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22192</guid><dc:creator>Dan</dc:creator><description>&lt;p&gt;jerryhung, you could always search syscomments for stored procedure text, the id column is the object_id.&lt;/p&gt;
&lt;p&gt;select * from syscomments where text like '%SPText%'&lt;/p&gt;
</description></item><item><title>re: SQL Search - free tool for searching your SQL Server</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2010/02/11/sql-search-free-tool-for-searching-your-sql-server.aspx#22204</link><pubDate>Thu, 11 Feb 2010 21:52:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22204</guid><dc:creator>Harsh</dc:creator><description>&lt;p&gt;John,&lt;/p&gt;
&lt;p&gt;Does it have some intelligence built-in like to skip the text which is part of comments?&lt;/p&gt;
&lt;p&gt;@Dan,&lt;/p&gt;
&lt;p&gt;Even better, you can use information_schema views but that would be crude search&lt;/p&gt;
</description></item><item><title>re: SQL Search - free tool for searching your SQL Server</title><link>http://sqlblog.com/blogs/john_paul_cook/archive/2010/02/11/sql-search-free-tool-for-searching-your-sql-server.aspx#22206</link><pubDate>Thu, 11 Feb 2010 22:17:18 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:22206</guid><dc:creator>John Paul Cook</dc:creator><description>&lt;p&gt;It doesn't ignore text that is commented out. You should try it out. I'll think you'll find it handy. I wrote my own search tool once and this one is way better than mine!&lt;/p&gt;
</description></item></channel></rss>