Blog

Find procedure and function in SQL Server

Posted by Kunal Vaishya Blogs | SQL Oct 26, 2012
Find procedure and function from this query.

ROUTINE_TYPE = 'PROCEDURE' OR  'Function'

 

Select ROUTINE_TYPE,SPECIFIC_NAME,ROUTINE_DEFINITION

FROM   INFORMATION_SCHEMA.ROUTINES

WHERE  OBJECTPROPERTY(OBJECT_ID(SPECIFIC_NAME),'IsMSShipped') =0

       AND ROUTINE_DEFINITION  like '%prcleave%'

       AND ROUTINE_TYPE='PROCEDURE'
comments
COMMENT USING
PREMIUM SPONSORS
Infragistics is experts in technology and design, and passionate about helping you build highly performant and stylish applications that solve problems, deliver inspiration, and maximize results.
Nevron Chart
SPONSORED BY