Newbie problem, Added a link table for a many to many. Can't insertbecause of a foreign key constrai

J

John Yee

Hi,

I am not a DBA or experienced database designed. I am making a dvd
library database. I have an actresses, casts, and videos table. I
already populated the videos (dvd titles), and actresses. The casts
table only have the ActressId and VideoId columns. It is configured as
a many to many relationship. When I try to insert all the data from
the old database to the new designed Casts tables, I get the following
error message


The INSERT statement conflicted with the FOREIGN KEY constraint
"FK_Casts_Actresses". The conflict occurred in database
"DvdCollection", table "dbo.Actresses", column 'ActressId'.

Any help is greatly appreciated,

CR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top