DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE
SITE SEARCH SQLUSA.com HEADLINES NEWS
SQL E/BOOKS   SQL 2014 PROGRAMMING   DOWNLOADS
SCRIPTS SQL 2005 SQL 2008 ARTICLES
SQL JOBS TWITTER FORMAT VIDEOS
How to search all stored procedures?

Execute the following Microsoft SQL Server T-SQL query after replacing "Product" with your own search term:

-- Search all stored procedures for keywords

DECLARE @keyword nvarchar(128) = 'Product'

SELECT      SchemaName=SCHEMA_NAME(schema_id),

            SPROCName = o.name,

            Keyword = @keyword

FROM AdventureWorks2008.sys.all_sql_modules sm

  INNER JOIN AdventureWorks2008.sys.objects o

    ON o.object_id=sm.object_id

WHERE o.type = 'P'

  AND definition like '%'+@keyword+'%'

/*

SchemaName  SPROCName   Keyword

dbo   uspGetWhereUsedProductID      Product

dbo   uspGetBillOfMaterials   Product

*/

Exam Prep 70-461
Exam 70-461
DATETIME SELECT SELECT INTO DATE PAD STRING DYNAMIC SQL CURSOR MONEY FORMAT PERCENT STORED PROCEDURE SQL SERVER AGENT JOB OPTIMIZATION WHILE LOOP OVER PARTITION BY UPDATE