Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
fordyh
Starting Member
5 Posts |
Posted - 2008-09-26 : 09:21:55
|
Is there any way to find all the tables referenced in all stored procedures in a database? I have come across code to pick the tables out of a single stored procedure, but I need a list for the whole db.Thanks for any help with this.Andy |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-09-26 : 09:32:29
|
have a look at sp_depends stored procedure. you may have to loop the stored procedure for each item in your INFORMATION_SCHEMA.ROUTINES view to get dependent tables of all sps. |
|
|
|
|
|