<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Tech-Recipes - Latest Comments in SQL Server 2005: Locating Stored Procedures that Contain a Keyword</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><language>en</language><lastBuildDate>Thu, 05 Feb 2009 11:06:31 -0000</lastBuildDate><item><title>Re: SQL Server 2005: Locating Stored Procedures that Contain a Keyword</title><link>http://www.tech-recipes.com/rx/3701/sql-server-2005-locating-stored-procedures-that-contain-a-keyword/#comment-5867966</link><description>Thanks! good info. Here is the OBJECT_NAME built-in for SS05 and beyond... I'm on ss08 now.&lt;br&gt;&lt;br&gt;select OBJECT_NAME(m.object_id), m.definition from sys.sql_modules m where &lt;br&gt;Definition like '%YourKeyword%'&lt;br&gt;&lt;br&gt;Frankly I like yours better</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dan Wygant</dc:creator><pubDate>Thu, 05 Feb 2009 11:06:31 -0000</pubDate></item><item><title>Re: SQL Server 2005: Locating Stored Procedures that Contain a Keyword</title><link>http://www.tech-recipes.com/rx/3701/sql-server-2005-locating-stored-procedures-that-contain-a-keyword/#comment-4281853</link><description>In SQL 2000 you will need to join together all the 8K records in syscomments for each stored procedure to search within, and beware of your search term breaking across an 8K boundary between 8K records. That will require creating a record that includes the last 1000 chars of one record + the first 1000 chars of the next record to include in the search. You may use less than 1000 chars depending on the size of your search terms.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sleakbug</dc:creator><pubDate>Tue, 09 Dec 2008 00:38:12 -0000</pubDate></item></channel></rss>