Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List of tables used in a store procedure; different databases

Status
Not open for further replies.

makeitwork09

Technical User
Sep 28, 2009
170
US
We are using SQL Server 2005, which has more than one database.

One of the databases, we will call it X, has a stored procedure that uses many tables from another database that we will call Y.

I know there is a way to get a list of tables used in a stored procedure from within the same database, but given the scenario above, is there a way to get a list of the tables from database Y that are used in a store procedure created in database X?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top