This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes Doubt on insert statement in JDBC!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Doubt on insert statement in JDBC!!" Watch "Doubt on insert statement in JDBC!!" New topic
Author

Doubt on insert statement in JDBC!!

dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
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

Joined: Apr 14, 2004
Posts: 10336

A couple of questions: what is the error you are seeing? And why are you using the jdbcdbc bridge? (is Access your database?)


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
dhwani mathur
Ranch Hand

Joined: May 08, 2007
Posts: 621
hi


My server is SQL and i am getting compiler error
in Eclipse.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


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?
 
 
subject: Doubt on insert statement in JDBC!!