File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt on insert statement in JDBC!!

 
dhwani mathur
Ranch Hand
Posts: 621
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

i am trying to take user input in my
program but later i want to pass this to
the insert statement but everytime i am getting
an error.below is my code

Connect.java class



please if anyone can help on this
to what is going wrong in program it
will be great...............


thanks in advance..........

Dhwani:>Swimmers never weep.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of questions: what is the error you are seeing? And why are you using the jdbcdbc bridge? (is Access your database?)
 
dhwani mathur
Ranch Hand
Posts: 621
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi


My server is SQL and i am getting compiler error
in Eclipse.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

My server is SQL


Do you mean Microsoft SQL Server? In which case you should use jTDS or their own JDBC driver.


i am getting compiler error

...and what is that compiler error?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic