List of the tables from Stored procedure
srk
41
Reputation points
Hi there,
I was trying to find list of the tables used in stored procedure as we did use the tables in INSERT, UPDATE, IN JOINS , TRUNCATE as well. I would like to get the list of the tables part of above operations please.
Please let me know.
2 answers
Sort by: Most helpful
-
-
Erland Sommarskog 113.7K Reputation points MVP
2023-08-30T21:56:19.1733333+00:00 There is no straightforward way to do this - you would need to parse the code.
But for some ideas of what is available in terms of partial solution, see the short story Where Is that Table Used? on my web site.