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 VIDEOS
 
 
SQL E/BOOKS   WORLD, USA & SQL NEWS   FORMAT
SCRIPTS SQL 2005 SQL 2008 ARTICLES
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
SQL 2016 DESIGN & PROGRAMMING
 
 
 
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