Two Laptop Bag
The moose likes JDBC and the fly likes Doubt on insert statement in JDBC!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply 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?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Doubt on insert statement in JDBC!!
 
Similar Threads
Doubt on calling java class in Servlet
in which method shuld i use at the servlet code for request
Cannot find symbol...
Doubt on Servlet having database connection?
Problem in displaying multiple search results