Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: I m a very much beginner !! plz help me with this very small exception :)

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I m a very much beginner !! plz help me with this very small exception :)

    SQL Exception: com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_unpa'. Cannot insert duplicate key in object 'dbo.unpa'.
    BUILD SUCCESSFUL (total time: 0 seconds)



    y does this apppear when i run the project ???

    the values are getting inserted correctly each time i run the program .


  2. #2
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,225
    Thanks
    176
    Thanked 817 Times in 760 Posts
    Blog Entries
    5

    Default Re: I m a very much beginner !! plz help me with this very small exception :)

    Without providing more information, that description is about as descriptive as you will get from anyone else - an SQL call is violating a primary key constraint.
    sql primary key violated constraint - Google Search

  3. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    10
    My Mood
    Cheerful
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: I m a very much beginner !! plz help me with this very small exception :)

    I think primary key repeated in some where.provide more information.
    thanks...

Similar Threads

  1. Replies: 5
    Last Post: September 5th, 2011, 10:31 AM
  2. Small problem, help please?
    By Jonathansafc in forum What's Wrong With My Code?
    Replies: 33
    Last Post: September 3rd, 2011, 06:46 PM
  3. Replies: 6
    Last Post: March 25th, 2011, 03:42 PM
  4. Small Project
    By 3XiLED in forum Paid Java Projects
    Replies: 7
    Last Post: March 1st, 2010, 07:35 AM
  5. small problem ... I need help
    By Ashar in forum Loops & Control Statements
    Replies: 4
    Last Post: December 4th, 2009, 10:26 AM