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
 Database Design and Application Architecture
 Table field link

Author  Topic 

abhit_kumar
Posting Yak Master

147 Posts

Posted - 2010-04-19 : 08:34:34
dear experts,

I have 1 tables in which there are 10 fields.
Now i want to know which field is linked with which table and field name?

Regards,

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2010-04-19 : 08:44:20
You can check using INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS and INFORMATION_SCHEMA.KEY_COLUMN_USAGE views. SP_Help on table name can also provide information regarding foreign keys.

Harsh Athalye
http://www.letsgeek.net/
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-04-19 : 08:56:56
You can't find anything if referential integrity is realized by application instead of sql server.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

abhit_kumar
Posting Yak Master

147 Posts

Posted - 2010-04-20 : 02:18:26
ok thanks i think in my case refrential integrity is realized by application.
Go to Top of Page
   

- Advertisement -