I have a stored procedure, I want to know the name of the tables and views use in that stored procedure, can any one suggest how can I do so.
Thanks in advance.
You can use sp_depends
but this depends on the dependency information being up to date.
Running sp_refreshsqlmodule
on all objects in the database can update this if there is any missing dependency information.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With