SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Dependancies
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gavakie
Posting Yak Master

221 Posts

Posted - 09/28/2007 :  17:31:11  Show Profile  Visit gavakie's Homepage  Click to see gavakie's MSN Messenger address  Reply with Quote
Exec sp_depends I have learned today shows what tables are in a specific view or sp but im noticing it only shows the tables that are in that database. Is there a way to show all tables from all tables that are in that database.

Lamprey
Flowing Fount of Yak Knowledge

4614 Posts

Posted - 09/28/2007 :  17:51:06  Show Profile  Reply with Quote
Not 100% sure what you want, but try looking at:
INFORMATION_SCHEMA.TABLES
INFORMATION_SCHEMA.TABLE_CONSTRAINTS
INFORMATION_SCHEMA.COLUMNS
ETC..
Go to Top of Page

rmiao
Flowing Fount of Yak Knowledge

USA
7266 Posts

Posted - 09/28/2007 :  21:48:31  Show Profile  Reply with Quote
What do you mean 'all tables from all tables that are in that database'?
Go to Top of Page

gavakie
Posting Yak Master

221 Posts

Posted - 10/01/2007 :  09:37:39  Show Profile  Visit gavakie's Homepage  Click to see gavakie's MSN Messenger address  Reply with Quote
So if I have a sp in tableA but in that AP it pulls some info from tableb it only will show the tabels from tableA
Go to Top of Page

spirit1
Cybernetic Yak Master

Slovenia
11750 Posts

Posted - 10/01/2007 :  10:41:06  Show Profile  Visit spirit1's Homepage  Reply with Quote
yes sp_depends only show objects in the current database.
that's how it is.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

gavakie
Posting Yak Master

221 Posts

Posted - 10/01/2007 :  10:50:07  Show Profile  Visit gavakie's Homepage  Click to see gavakie's MSN Messenger address  Reply with Quote
Is there away around that or another way of finding that out?
Go to Top of Page

spirit1
Cybernetic Yak Master

Slovenia
11750 Posts

Posted - 10/01/2007 :  11:14:17  Show Profile  Visit spirit1's Homepage  Reply with Quote
nope. you have to go in and look at it manualy

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000