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

Discussion in 'Access Table Design' started by John Yee, Jan 13, 2011.

  1. John Yee

    John Yee Guest


    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,

    John Yee, Jan 13, 2011
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.