Asish Raj

Asish Raj

  • NA
  • 11
  • 0

Foreign Key constraints

Aug 8 2007 12:03 AM

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)