3
Answers

Foreign Key constraints

Asish Raj

Asish Raj

17y
2.2k
1

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

Answers (3)