This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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?
 
Consider Paul's rocket mass heater.
 
subject: Doubt on insert statement in JDBC!!
 
Similar Threads
Doubt on calling java class in Servlet
Doubt on Servlet having database connection?
Problem in displaying multiple search results
in which method shuld i use at the servlet code for request
Cannot find symbol...