Foreign Key Constraint

0

I have a problem with a database (.sdf) in Visual Studio 2012 I have the following tables:

The primary key of branches I have related to the field Branch in the table Cars

The problem is that I enter a record in the table Branches with ID: 56 I try to enter a record in the Automoviles table and in the branches field the value of 56 and it does not let me save the record since it says that the foreign key restriction is inflicted.

I do not understand what happens since the value of 56 if it exists in the branch table

Previously it was working well then I will not leave

    
asked by Cristian Francisco 09.03.2017 в 02:40
source

0 answers