SELECT ROUTINE_NAME, ROUTINE_DEFINITION FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_DEFINITION LIKE '%lq_Campaign%' AND ROUTINE_TYPE='PROCEDURE'
Here is another way
Below query you can searcg any table, stored procedure or views what ever has that expression as a column or object name.
SELECT * FROM SYSOBJECTS WHERE ID IN (SELECT ID FROM SYSCOMMENTS WHERE TEXT LIKE ‘%PRODUC%’)
The query produced all the object names--where ever it finds expression like ‘PRODUC‘.
No comments:
Post a Comment