Cari Blog Ini

17 September 2010

IT - SQL Server - Query - Search Text In Stored Procedure





/*
Query for Search Text In Stored Procedure
*/

Use Northwind

SELECT OBJECT_NAME(id)
FROM syscomments
WHERE [text] LIKE '%SUCCEESSFULLY%'
AND OBJECTPROPERTY(id, 'IsProcedure') = 1
GROUP BY OBJECT_NAME(id)

Results :