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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

data dictionary questions

Status
Not open for further replies.

fixthebug2003

Programmer
Oct 20, 2003
294
US
HI,
In SQL Server
1. What data Dictionary tables should I look into to see the dependencies of one table over the other..!

2. Where are the Foreign key constraint Names ..like FK_table1_deptno (defined ny user during creation of Table)
stored?

Thanks
Fixthebug2003
 
I would use
Code:
sp_depends
to determine dependencies. The SysDepends table tracks dependencies, but Microsoft keeps threatening to change the table structures on us. They assure us the system procedures and Information_Schema views will not change. Yeah. Check out
Code:
sp_fkeys
and
Code:
sp_foreignkeys
in BOL for foreign key information.

--Angel [rainbow]
-----------------------------------
Every time I lose my mind, I wonder
if it's really worth finding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top