Ask your own question, for FREE!
Computer Science 16 Online
OpenStudy (anonymous):

can any one tell me how to do java sql or java access connectivity??? i've tried alot but nothing is working please help me with that....

OpenStudy (anonymous):

check the following class

OpenStudy (anonymous):

Nahin bhai, mujhe to java kuch pata nahin hai. sorry.

OpenStudy (anonymous):

ok yaar no problem but thanks anyway

OpenStudy (anonymous):

do u know anyone else who can help me with this...?

OpenStudy (rsmith6559):

In SQL, strings are single quoted. That will help your insert statement greatly. The compiler can't tell where strings begin and end when you haven't escaped the inner double quotes.

OpenStudy (anonymous):

How is the problem presenting itself? What kind of error are you getting? Can you get a basic "SELECT * FROM ..." to work with an existing database?

OpenStudy (anonymous):

dude nothing is working not even Select * from.... at every function program throws an exception ... i dont know what wrong with it.

OpenStudy (anonymous):

if you can't even get select to work, you probably don't have a connection to the database. What database system are you using?

OpenStudy (anonymous):

try this first: http://docs.oracle.com/javase/tutorial/jdbc/basics/gettingstarted.html

OpenStudy (anonymous):

Ms-sql and using JcreaterPro as java IDE.

OpenStudy (anonymous):

ok what to download from the link

OpenStudy (anonymous):

just read the tutorial and do what they tell you to do (download what they tell you to download). Just use JavaDB like they tell you to. Once you are more comfortable and understand the basics, you should be able to adapt it to your particular database. It's probably best if you start here: http://docs.oracle.com/javase/tutorial/jdbc/index.html

OpenStudy (anonymous):

ok thanks its a great help

OpenStudy (anonymous):

I guess your using java to access MS database...I noticed that you misspelled the string parameter for Class.forName("sun.jdbc.odbc.jdcodcDriver") ...It should be Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").....By the way you should define user dns to work with odbc datasource...

OpenStudy (anonymous):

ok... thank i'll check it

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!