Connecting Tech Pros Worldwide Forums | Help | Site Map

how to get the list of tables used in a storedprocedure

Newbie
 
Join Date: Oct 2008
Posts: 3
#1: Oct 29 '08
how to get the list of all tables and views used in storedprocedure
can any one help in this issue

ck9663's Avatar
Expert
 
Join Date: Jun 2007
Posts: 1,925
#2: Oct 29 '08

re: how to get the list of tables used in a storedprocedure


This is a little tricky since a VIEW and table-function can sometimes act as tables. Although function should have the parenthesis. There's also a table variable and temp tables.

Do it the old fashion way: Read the stored proc.

Good luck

-- CK
Reply