Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

General Error SQLException

 
Jordan Spell
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
----Done---
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jordan, it is nice that you solved your problem (at least, I think you did). But it would have benefited other Ranchers more if you would have left your original problem statements as it was, and then added another post outlining the solution.
 
Jordan Spell
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wish I could have left it up, but the information on the post was pertinent to work and I don't think I should leave code I do at work online anywhere. As for the problem, my code was fine, I was just trying to insert values into an access DB when I had accidentally left the first column as the primary key. As soon as I inserted two "whitespace" characters into the DB in the primary key column, it flipped out. So, bottom line, check the primary key column when you get General SQL error, perhaps you are inserted two of the same values and need to change your key or eliminate it.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jordan Spell wrote:Wish I could have left it up, but the information on the post was pertinent to work and I don't think I should leave code I do at work online anywhere.

Or post it in the first place. In the future, you can "anonymize" the class/package names to it is internet safe.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic