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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 elaborate for me

Author  Topic 

gavakie
Posting Yak Master

221 Posts

Posted - 2007-10-01 : 09:44:53
Im a little lost. Someone posted this for me.
INFORMATION_SCHEMA.TABLES
INFORMATION_SCHEMA.TABLE_CONSTRAINTS
INFORMATION_SCHEMA.COLUMNS


How does this help me find what tables are used in my storedprocedures and views. Im not quite sure how the syntax works on it. I cant find an example.

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-10-01 : 10:38:31
it doesn't really...
you have to use sp_depends stored procedure

_______________________________________________
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 - 2007-10-01 : 10:49:14
I have tried that. The problem I am running into is if the Stored Proc has tables it use from a different DB then it wont show those.
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-10-01 : 11:31:58
Might help to know what problem you are trying to solve, there might be a different starting point
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-10-01 : 11:34:17
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=90217

_______________________________________________
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
   

- Advertisement -