• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

General Error SQLException

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
----Done---
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic