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.
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 Athalyehttp://www.letsgeek.net/ |
|
|
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. |
|
|
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. |
|
|
|
|
|