INSERT statement conflicted with the FOREIGN KEY constraint

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I have two table StudentMaster and CasteMaster. In CasteMaster table CastId is primary key which s used as foreign key in StudentMaster table. In CasteMaster I have 2 records which is bind to the Combobox in StudentMaster form in winform
application(c#). But on saving I am getting the error that "INSERT statement conflicted with the FOREIGN KEY constraint" What is the problem? Plz help

View the full article
 
Back
Top