aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes database connectivity using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "database connectivity using java" Watch "database connectivity using java" New topic
Author

database connectivity using java

bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
good evening to everyone,

i have been doing java program using JFrame to create registration page.. there are 7 fields such as name, username, password,address,city,dob and gender..

and one JButton object.. when i clicked it, these details should be saved in the database..


i used the following code but it gives me an error like that

error is java.sql.SQLException: Invalid Cursor Type: 1003



my code is




Thanks in advance
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39394
    
  28
What does it say in the documentation for your database about that message and code 1003?
Bill Clar
Ranch Hand

Joined: Sep 21, 2006
Posts: 152

Check out what the Java API says about ResultSet.moveToInsertRow().
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2311
    
  49
By default ResultSets aren't updateable. You can request an updateable ResultSet when you create the statement object eg:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: database connectivity using java