Find procedure and function in SQL Server
ROUTINE_TYPE = 'PROCEDURE' OR 'Function'
Select ROUTINE_TYPE,SPECIFIC_NAME,ROU TINE_DEFINITION
FROM INFORMATION_SCHEMA.ROUTINES
WHERE OBJECTPROPERTY(OBJECT_ID(SPECI FIC_NAME),'IsMSShipped') =0
AND ROUTINE_DEFINITION like '%prcleave%'
AND ROUTINE_TYPE='PROCEDURE'
Comments
Post a Comment