I am trying to link 2 table in sql server let's assume one of them called customer
and the other is product
.
customer
has custID
as primary key and i want to link it with custID
in product
table as foreign key, and its give me this error:
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_product_customer". The conflict occurred in database "xyz", table "dbo.customer", column 'custID #'.
Is there anyone know, how can I fix the issue?
This could have many reasons.
You can check the second part by using this:
Hope this give you a hint.