|
Hi all, I have to build the relationship between theese two tables: (orders head and orders details) So one record of TST have multiple records in DET TST (parent table), which composite PK is: numrif (int) datrif (date) DET (child table), which composite PK is: numrif (int) datrif (date) numdet (int) How can I set up this one-to-many relationship? Thanks
(comments are locked)
|
|
Follow this example Hello Kev, thank you for your response. I followed your example and all works, also with integrity cascade reference. And I eventually found what was going wrong.. The PK in TST table was datrif,numrif and not numrif,datrif... :( thank you again, bye
Aug 22 '12 at 07:30 AM
paocar75
Yes the FK defintion needs to match the PK definition
Aug 22 '12 at 07:36 AM
Kev Riley ♦♦
(comments are locked)
|


Forgot the DB: Sql Server 2008