JDBC Driver woes!!! Where to begin????

Ok... I started out by reading the basic jdbc sun tutorial. But I am not sure where to begin in terms of connecting to a database... driver-wise that is. Does jdk1.5 come with a driver? Or do I have to download 1. I have an access database that I would loev to connect to. I also have that same database on a local php server as a mySql database. Please someone aid me in finding out where to turn or recommending a driver that I can download

What? Real newbie here. That's obvious. But you said you read the tutorial. That should have given you more information than you seem to possess.
Could you break down what you
said a little bit more please. Who is my database
vendor? I am using Microsoft Access db's and mySql's
databases.Let's see - Microsoft and MySQL are the vendors.
What should I download exactly and what is the string
argument I should provide to the Class.forName(...)Like I said, you can use the bridge driver to connect to Access.
You need to download the MySQL JDBC JAR here:
http://dev.mysql.com/downloads/connector/j/3.1.html
Put that JAR in your app's CLASSPATH.
You should put the name of the driver class in the call to Class.forName(). The docs will make it clear.
%

Similar Messages

  • JDBC driver install for SQLSERVER 2000

    I am porting my application from Oracle DB to SQLServer2000.
    Which JDBC driver and where can I get the drivers and procedures to
    install the driver?
    Any advice for the porting procedures will be appreciated.
    Thanks in advance for any comments.
    Judy

    This comes up over and over and over and over; use the "search Forums" feature...

  • Where is the jdbc driver to change it in IAS folders

    Hello ...
    we are developing an application in Jdevelper 10.1.2. When we test the application in the jdeveloper embedded container, a specific query is not returning the correct information from the database. However, if we deploy the application in an IAS 10g instance in the A server, the specific query in the application works correctly. We deploy the same application in another server and the specific query doesn't work correctly... we belive that the reason of this error is the jdbc driver
    The question is: Where is located the oracle jdbc driver in the IAS 10g folders to change the driver.... i try in the jdbc folder from the Home folder but the folders in both servers are equals the applib folder in the instance path are diferent in some jar files but no one of this files are related with jdbc driver

    Hi,
    I don't want to use JDeveloper.
    I want to write a Java program that connects to the database using Jdbc.
    The PATH and CLASSPATH are defined for Java 1.4.
    Here is the current CLASSPATH:
    L:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;
    L:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;.
    What "import java......." should I code?
    Many thanks.

  • Mm.mysql JDBC Driver and the WHERE clause

    Anybody has succesfully performed a MySQL/JDBC query in a JSP application using more than one variable in the WHERE clause?
    It works fine when I run queries with one fixed value assigned to a column and one variable assigned to the other column in the WHERE clause; but when I do it with more than one variable in the WHERE clause, it screws up throwing an error.
    I wonder if it is a code error, a syntax error or if it is something tricky about the mm.mysql JDBC Driver. Following is a section of the code and the error. The variables are s_description and s_status. I read some examples in a book but they use SQL Server. Thank you in advance for any information.
    CODE:
    <% String sqlStatement = "" ; %>
    <% String s_description = "Mexican Style Rice" ; %>
    <% String s_status = "available" ; %>
    <% java.sql.Statement stmt = con.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_UPDATABLE); %>
    <% java.sql.ResultSet rs ; %>
    <% sqlStatement = "SELECT code, description, status FROM products WHERE products.description =" + s_description + " AND products.status =" + s_status + ";" ;%>
    <% rs = stmt.executeQuery(sqlStatement); %>
    <% rs.beforeFirst(); %>
    <% while (rs.next()) { %>
    <% rs.updateString(3, "sold"); %>
    <% rs.updateRow(); %>
    <% }%>
    <% rs.close(); %>
    This is the ERROR it throws
    java.sql.SQLException: Column not found: Unknown column 'available' in 'where clause'
         at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:497)
         at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(MysqlIO.java:550)
         at org.gjt.mm.mysql.MysqlIO.sqlQuery(MysqlIO.java:635)
         at org.gjt.mm.mysql.Connection.execSQL(Connection.java:882)
         at org.gjt.mm.mysql.Connection.execSQL(Connection.java:815)
         at org.gjt.mm.mysql.Statement.executeQuery(Statement.java:169)
         at org.gjt.mm.mysql.jdbc2.Statement.executeQuery(Statement.java:78)
         at pagecompile._GetFood_xjsp._jspService(_GetFood_xjsp.java:45)
         at com.newatlanta.servletexec.JSP10HttpJspPage.service(JSP10HttpJspPage.java:41)
         at com.newatlanta.servletexec.JSP10Servlet.service(JSP10Servlet.java:779)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.newatlanta.servletexec.ServletExec.CallServletService(ServletExec.java:1679)
         at com.newatlanta.servletexec.ServletExec.processServletRequest(ServletExec.java:1654)
         at com.newatlanta.servletexec.ServletExec.processServletAlias(ServletExec.java:1602)
         at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1343)
         at com.newatlanta.servletexec.ServletExec.ProcessRequest(ServletExec.java:1113)

    I think perhaps this sentence has problems:
    <% sqlStatement = "SELECT code, description, status FROM products WHERE products.description =" + s_description + " AND products.status =" + s_status + ";" ;%>
    You can
    <% sqlStatement = "SELECT code, description, status FROM products WHERE products.description ='" + s_description + "' AND products.status = '" + s_status + "'" ;%>
    You perhaps ignore the ���� when using String variable s_description and s_status.
    Hope this will help you. Good lucky!

  • Where can I download 'V8Compatible' 9.2 JDBC Driver?

    Where can I download 'V8Compatible' 9.2 JDBC Driver?
    My 9.2 driver translates timestamps to TO_TIMESTAMP() - which doesn't exist on 8.1.7 server.
    - Mike Reiche

    The manifest in the driver on the 9.2.0.1 downloads page says it is 9.2.0.0 (from April 25, 2002).
    - Mike

  • Where can I find installation instructions for JDBC driver?

    Is any one here to help me out by pointing out where I can find the installation instructions for the downloaded oracle 8i jdbc driver?
    Thanks

    Hi,
    You will find the installation instructions for JDBC Driver in the JDBC Developer's Guide & Reference.
    Here is a direct link to it http://otn.oracle.com/docs/products/oracle9i/doc_library/901_doc/java.901/a90211/getsta.htm
    Hope this helps,
    OTN Team

  • Where I can download JDBC driver for AIX

    Only NT and SUN Solaris JDBC drivers are available in the download area. Where I can download JDBC driver for AIX 8.1.7?

    What if you try deleting the /Library/Printer/EPSON and the/Library/Caches/Epson/ folders and then reinstalling the updates?
    The scanner is shown as supported on
    http://support.apple.com/kb/HT3669
    Hope this helps.

  • Where to find the useful jdbc driver

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk?
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all.
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ...

    Dear Pro.:
    now i am trying to convert my ODBC/C/Oracle project into JDBC/java/Oracle one. i used Oracle 8i database version 8.1.7., but i encounter some questions about this process:
    1. Does the Java SDK version has anything to do with the jdbc driver? i know java2 sdk's newest version is 1.4, and the jdbc is 3.0. what is the best solution for matching jdbc driver with sdk? there isn't per say an exact match between JDBC drivers spec and JDK versions
    2. which jdbc driver is best for Oracle, and where i can get it? i know i can get from DataDirect(15 day try out version) or Oracle. my project evnironment is simple, i run the Oracle 8.1.7 on my personal computer, that is all. check 8.1.7 drivers, here http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
    3. should i learn SQLJ or just jdbc?
    thank you for your consulting ... SQLJ provides the simplicity of embeding SQL statements in Java similat to embeding SQL statements in C (a.k.a. Pro*C). In Oracle9i Database release 2, SQLJ is functionally on par wiht JDBC ( dynamic SQL, support for advanced JDBC features) - bottom line use SQLJ is you are looking for simplicity, productivity, stronger type checking.
    Kuassi

  • Where to download 9i JDBC driver for NT/2000??

    Any one know where I can download 9i JDBC driver for all the
    platform?? Thanks..

    I checked out the download section on OTN for JDBC Driver
    (http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html)
    The latest ones look to be the 8.1.7 JDBC drivers for NT/2000.

  • Where and when is JDBC driver needed?

    I'm just getting started with JDBC + MySQL. I'm writing applets. But where/when do I need to install the JDBC driver?
    1. Only at compile time and only on the machine where I compile my java code.
    2. On my webhosts server.
    3. On the client as some sort of plug-in. Meaning everyone who views my web page would have to download & install something.
    Thanks.

    The JDBC driver will be downloaded to the client
    machine in the codebase. The client has to havethat
    class in order to connect to the server. So itdoes
    add to the size of the download, it's just not
    permanently installed on the client machine.
    wrong.
    NO you are WRONG again!!!
    this is an APPLET not a SERVLET
    this means....
    (and really try to use your limited intelligence to read this next part carefully)
    that the JDBC connection is coming from the client's machine where the applet is running.
    this means that the applet will download the JDBC driver as part of what it needs to run.
    if this is was a servlet then obviously the driver would only be needed on the server....
    but it isn't
    it's an applet
    >
    The database must be running on same server thatthe
    applet came from, according to the sandbox
    restrictions on an applet. You might haveadditional
    security problems trying to connect to a different
    port. wrongwrong again...
    see above.
    >>
    I'd recommend against have an applet connectdirectly
    to a database. Have the applet connect to anobject
    running on the server that will do the database
    connections and queries on its behalf. - MODdont know what you mean by an applet connect directly
    to a database. how? the rest seems to be correct. to
    be more precise, however, i must add that you would
    need to use servlets in between an applet and the
    server. an applet cannot connect to machines other
    than the one that hosts it, yet the database can be
    anywhere as long as it is visible by the jdbc code
    residing on the hosting server. like you said
    correctly, the jdbc code does not have to be
    wodnloaded to the client machine, thus it adds
    nothing to the size.
    hope this helps.this almost contains some useful information...
    to the original poster.
    the stuff posted by duffymo is correct, stuff posted here (and elsewhere) by daFei is garbage and should be ignored.

  • Where to put SQL Server JDBC driver in Tomcat?

    Can anyone tell me where should I put the Microsoft SQL Server JDBC driver in the Tomcat and can make it work?

    You may also need to place the full path in the classpath variable. You can also download install instructions from the same page where you access the microsoft driver.

  • JDBC on ORACLE 10 G 2: Where is the Jdbc driver?

    Hi,
    I have the JDBC tutorial working with Jdeveloper 1.3 (wich uses Java 1.5), but I would like to test a standalone java source against ORACLE 10 (wich uses Java 1.4).
    So far I have found these snippets:
    ******************** Quote 1 ***********************************************************
    // Import the JDBC classes
    import java.sql.*;
    import oracle.jdbc.pool.OracleDataSource;
    // Import the java classes used in applets
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import java.io.*;
    import java.util.*;
    public class JdbcApplet extends java.applet.Applet
    implements ActionListener
    // The connect string
    static final String connect_string = "jdbc:oracle:thin:hr/hr@//localhost:1521/orcl.oracle.com";
    ****************************** End quote 1 *******************************************
    That does not compile (Java 1.4 is in PATH and CLASSPATH)
    Here is the error message:
    *************************** Quote ****************************************************
    JdbcAplaite.java:22: package oracle.jdbc.pool does not exist
    import oracle.jdbc.pool.OracleDataSource;
    ^
    JdbcAplaite.java:82: cannot resolve symbol
    symbol : class OracleDataSource
    location: class JdbcAplaite
    OracleDataSource ods = new OracleDataSource();
    ******************** End Quote *****************************************************
    This other snippet:
    ***************************** Quote 3 *************************************************
    // You need to import the java.sql package to use JDBC
    import java.sql.*;
    class Selector
    public static void main (String args [])
    throws SQLException
    // Load the Oracle JDBC driver
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Connect to the database
    // You must put a database name after the @ sign in the connection URL.
    // You can use either the fully specified SQL*net syntax or a short cut
    // syntax as <host>:<port>:<sid>. The example uses the short cut syntax.
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@oracle-prod:1521:8PRD",
                        "USERNAME", "PASSWORD");
    does not work either. Error message:
    ******************************* Quote *********************************************************
    Selector.java:23: package oracle.jdbc.driver does not exist
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    ^
    1 error
    I try to locate the source generated by JDevelopper when using JDBC but I find only XML files.
    But I really need Jdbc Java 1.4 style, since I can't change PATH and CLASSPATH if I want to keep ORACLE 10 running on XP PRO.
    So I'm stuck.
    Many thanks for your help :-)

    Hi,
    I don't want to use JDeveloper.
    I want to write a Java program that connects to the database using Jdbc.
    The PATH and CLASSPATH are defined for Java 1.4.
    Here is the current CLASSPATH:
    L:\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;
    L:\oracle\product\10.2.0\db_1\jlib\orai18n.jar;.
    What "import java......." should I code?
    Many thanks.

  • Where to add Third Party JDBC Driver in SQL Developer 4.1 EA2

    In SQL Developer 4.0.3 under Tools - Preferences - Database there was an option to add a  Third Party JDBC Driver so we could use the same tool for a PostgresSQL database.  I cannot find in in SQL Developer 4.1.0.18

    I think it happened because I imported settings and connections from a previous installation. 
    I removed the C:\Users\username\appdata\SQL Developer\system4.1.0.18.37\ folder.
    I've run it now without that and the option is back.
    Thanks! 

  • Where can I get a db2 jdbc driver with connection pool

    hi,all
    I want to look for a free jdbc driver to connect to db2 using with connection pool.
    it isn't present in db2java.zip
    thanks and regards
    [email protected]

    To find JDBC drivers take a look at SUN's overview at http://industry.java.sun.com/products/jdbc/drivers

  • Where can i find the api document of Oracle JDBC driver

    coz i find if u using stream to retrieve the Oracle LONG data field. Sometime it throwed an IOException (from the oracle.jdbc.driver.OracleInputStream). And i found there is a method in this class named resetLong(). So i wanna get some stuff to read, then i can know how does it work

    YiNing,
    Did you check this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/87/3ef4403ae3db12e10000000a155106/content.htm
    Does it help? Also did you look into the Java Docs Section,
    https://help.sap.com/javadocs/index.html
    Regards
    Bhavesh

Maybe you are looking for

  • Best practice for SCEP definition ADR?

    This is how I understand the best practice to be for configuring the SCEP definition ADR: Have synchronization run once per day during non peak hours  Configure the SCEP definition ADR to run after each synchronization rather than running in interval

  • Can't able to access the internet in window server 2003 sp2 64bit.

    Hi,      recently i installed , windows server 2003sp2 64bit, every thing was perfect expect, internet. Ican't access the internet in that server, i tried to update the LAN drives but no use, I tired t install Adapter drives no use. What i have to do

  • Enterpise Best Practices for iPad

    Is anyone aware of any documentation idnetifying best practices for securely deploying iPads in an enterprise environment?

  • Change of Tab in Tabstrip through Button

    hi, I want to change tabs through Buttons. I have given two buttons like Next & Previous. I have given contextAttribute "SelectedTab" and bind with selectedTab property of tabstrip. i have done this coding public void onActionPrevious(com.sap.tc.webd

  • Daughter's Mini won't automatically sleep

    Hi there, My daughter's Mini always seems to have a load going, even when she has no apps running and has been away from her desk for hours. The fan runs almost constantly, and the hard disk never sleeps (unless you manually put the computer to sleep