i am new to VB.net. i need to create two Foreign Key Constraints. i am able to create a single constraint but unable to two constraints.
Syntax for one foreign key constraints.
ds.Tables(1).Constraints.Add("FK", ds.Tables(0).Columns(1), ds.Tables(1).Columns(1))
I need to reference two columns from the parent table as foreign key in the child table
Any help would be highly appreciated
Asish RajPosted Aug 14, 2007, 12:33 AM
dsTimeCard.Tables("TimeCardDetails").Constraints.Add("TimeCardDetailsFK",
New DataColumn() {All Pks}New DataColumn() {All Fks})All da best mate.
Jan MontanoPosted Aug 10, 2007, 1:20 AM
I'm interested with your solution. Could you please post your solution? Thanks.
Regards,
Jan
Asish RajPosted Aug 9, 2007, 5:17 PM
Thanks for the help.