|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Foreign Key Finding 'Owner'
Hi,
I have specified a Foreign key with a table of my database. Now I need to, with an SQL Query, be able to tell which table holds the Primary Key and what the Field Name? In Other Words: ----------------- tbl_Computer ----------------- PK | ComputerID FK | TheAddONID ----------- tbl_AddOn ----------- PK | AddOnID Link/Constraint: TheAddONID = AddOnID I would like an SQL procedure that could tell me the table and column I am looking for is: Table = tblAddOn Column = AddOnID Last edited by pranklib : February 19th, 2004 at 10:30 PM. |
![]() |
| Viewing: ASP Free Forums > Database > SQL Development > Foreign Key Finding 'Owner' |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|