Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

annas

  • 2 years ago

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....

  • This Question is Closed
  1. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    check the following class

  2. Aadarsh
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  3. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok yaar no problem but thanks anyway

  4. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

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

  5. rsmith6559
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

  6. nczempin
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    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?

  7. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

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

  8. nczempin
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    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?

  9. nczempin
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

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

  10. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Ms-sql and using JcreaterPro as java IDE.

  11. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok what to download from the link

  12. nczempin
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    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

  13. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok thanks its a great help

  14. Waynasdi
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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...

  15. annas
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    ok... thank i'll check it

  16. Not the answer you are looking for?
    Search for more explanations.

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.