Sometimes, we need to identify which stored procedures are using a specific column from a table in SQL. To find and list all such procedures, you can use the following query:

I have table blogMaster with column BlogTitle , need to list down all procedures name.
you can use below syntax and replace tablename and column name with yours

    SELECT p.name AS ProcedureName
    FROM sys.procedures p
    JOIN sys.sql_modules m ON p.object_id = m.object_id
    WHERE m.definition LIKE '%BlogMaster%' AND m.definition LIKE '%BlogTitle%';


šŸ™ Thank You for Reading!

Thank you for taking the time to read this blog!

If you have any questions or need help with something, feel free to drop a message in the comments or contact section. I’ll get back to you as soon as possible.

Happy Learning! 😊



Leave a Reply

Your email address will not be published. Required fields are marked *


Talk to us?

Post your blog

F.A.Q

Frequently Asked Questions