Wednesday, October 19, 2011

Search Through Stored Procedure

How to find if particular table is being used in the stored procedure?
How to search in stored procedures?


SELECT Name
FROM sys.procedures
WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%Docs%'
AND OBJECT_DEFINITION(OBJECT_ID) LIKE '%FileLoc%'
go

No comments: