Results 1 to 2 of 2

Thread: Help! can't insert to table! with two primary key

  1. #1

    Thread Starter
    Lively Member Cerebrate's Avatar
    Join Date
    May 2000
    Posts
    82

    Red face

    I try to insert couple data into a table which has two primary key. It's very strange!
    I can insert the only two at once and I will receive these error right after the second row is insert:
    "violation of primary key contraint XXXXX , can not insert dulplicate key into object XXXX."

    Please help me!!


    Cerebrate

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Question

    Sorry If this Is A stupid question But when your entering your two rows, have you got the two primary keys different For both inserts because if you haven't it will cause the error you are getting.

    EG. If both your keys were numeric you could have 1,1 For one record and 1,2 for the next, But you couldn't have 1,1 in any other record.

    Again sorry if this is a stupid question but i'm just eliminating the obvious.


    Hoep this helps

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width