aspose file tools*
The moose likes JDBC and the fly likes General Error SQLException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "General Error SQLException" Watch "General Error SQLException" New topic
Author

General Error SQLException

Jordan Spell
Greenhorn

Joined: Aug 04, 2009
Posts: 9
----Done---
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

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.


JBoss In Action
Jordan Spell
Greenhorn

Joined: Aug 04, 2009
Posts: 9
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29287
    
140

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: General Error SQLException