TN 1156 How to query SQL Server for all Stored Procedures that use a specific table in SQL Server
Last updated: March 5th, 2025Description
- Author: Brian Schneider
- Published: March 5th, 2025
Details:
You can query SQL Server to find all Stored Procedures that access a table (example Runtime DB Tag table) with the the following query:
SELECT Name
FROM sys.procedures
WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%Tag%'