Database connectivity with MS Acess using WSAD5.1

I am using WSAD5.1 as IDE and development tool. I am trying to connect to MS Access database using following lines of code
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //.newInstance();
dbConnection = DriverManager.getConnection("jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=C:\\customers.mdb");
I tried creating system DSN and changing url as "jdbc:odbc:Test" where Test is DSN.
I have rt.jar file in my class path.
When I run this program from command prompt I am getting connectivity with proper results.
The problem is when it is run with WSAD inweb project I am getting an error
"java.sql.SQLException: No suitable driver".
Am I required to change any environmental settings?

try this Code
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
dbConnection = DriverManager.getConnection("jdbc:odbc:test"); <Here Test is the driver name>and add the tools.jar file in the IDE li directory or in to the Project path of the IDE

Similar Messages

  • Can someone connect in FaceTime if they are using a friends Macbook Pro, yet, doens't have an Apple ID??  For example, I have an IPAD and a Macbook Pro.  Can I connect to FaceTime on my Macbook Pro and connect with a friend using my IPAD????

    Can someone connect in FaceTime if they are using a friends Macbook Pro, yet, doens't have an Apple ID??  For example, I have an IPAD and a Macbook Pro.  Can I connect to FaceTime on my Macbook Pro and connect with a friend using my IPAD????

    I have also tried changing the contact emails(you can contact me by) in Facetime(diff email for IPAD and Macbook Pro).  Facetime tried the call, I see the accept buttom appear and it goes away as the call never connects?   Any ideas??

  • My samsung says video out from i pad is not supported. i am connecting with apple dock using hdmi. I do get the audio

    my samsung says video out from i pad is not supported. i am connecting with apple dock using hdmi. I do get the audio  any suggestions?

    Jeffrey-
    If the HDMI input to the Samsung is not compatible, does it have a VGA or composite input?  I have both the HDMI and VGA adapters for the iPad, which work with the small Vizio HDTV I tried.  I understand a composite video adapter is also available.
    Fred

  • NetBean, I can't establish the oracle database connection with version 9i.

    In NetBean, I can't establish the oracle database connection with version 9i.
    I have create the datasource and it is fine.
    when i try to access the tables i get a message
    "Unable to refresh children, connection is broken, unsupported feature"
    in netbeans.
    Does netbeans support oracle 9i version.
    Thanks,
    VKK

    In NetBean, I can't establish the oracle database connection with version 9i.
    I have create the datasource and it is fine.
    when i try to access the tables i get a message
    "Unable to refresh children, connection is broken, unsupported feature"
    in netbeans.
    Does netbeans support oracle 9i version.
    Thanks,
    VKK

  • Is it possible to connect with Blackberry to use internet on my iPad??

    Is it possible to connect with Blackberry to use internet on my iPad??

    Only if the Backberry and the cellular provider allows the Blackberry to be set up as a wifi hotspot.

  • I can not get my Ipod to connect with my computer using a usb cord

    I can not get my Ipod to connect with my computer using my usb cord ?

    Hi starhalcomb,
    I'm sorry to hear you are having issues with your iPod touch. I also apologize, I'm a bit unclear on your exact configuration. If you are having issues with your iPod touch not being recognized in iTunes when you connect via USB, you may find the information and troubleshooting steps outlined in one of the following articles helpful:
    iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
    If you don't see your connected device in iTunes for Mac - Apple Support
    Regards,
    - Brenden

  • I cant connect WITH another divice using Bluetooth

    I cant connect WITH another divice using Bluetooth

    The Bluetooth profiles for the iPhone to not support connecting to other devices. To check what they do support, see this support document. http://support.apple.com/kb/HT3647

  • Why does not ipad show on itunes? when i connected with my macbook using usb, just it is charging electricity.

    why does not ipad show on itunes? when i connected with my macbook using usb, just it is charging electricity.
    i don't know why...

    Sometimes it can be something very simple and easy to fix. Before you get into any involved troubleshooting, quit iTunes, restart your Mac, restart your iPad and then try to sync again.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    If this doesn't work, then try the more involved stuff.

  • How TO use configurable Database connection with ADF BC

    I have developed a simple JSF/ ADF BC web application that connects to a database and read/display data from the db tables. I have successfully deployed the application to Tomcat 5.5.17. However, now i need to change the database the application is connecting to. My question is How can I change the Database connection without having to change the application modules or rebuild the war file ??? In other words, is there a specific file (xml) where the database connection can be changed?

    If you set up the application with a data source (I am not sure if this is possible using another app server, I use OC4J), then you would just change it there. However if you created a database connection in the JDEV and pointed your data model to that, then you will have to change and rebuild.
    You might be able to edit the xml file that contains the setttings, I am not sure my CM guys dont allow this, all of our changes have to go through our code repository.

  • Connection with SQL Server using DBCO

    Hi,
    I want to connect to Misrosoft SQL Server using DBCO transaction. I have given the following fields.
    DB Connection = test
    DBMS = MSS
    User Name = user02
    password = test
    Conn. info = MSSQL_SERVER=tcp:10.100.50.36 MSSQL_DBNAME=New_Wisdom
    permanent selected
    Connection Limit = 5
    Optimum Conns = 2
    while executing through the statement as follows,
    EXEC SQL.
    CONNECT :'TEST'
    ENDEXEC.
    I am getting the dump ' An SQL error occurred when executing Native SQL.
    The error 900 occurred in the current database connection "DEFAULT".' Please suggest me what needs to be added or corrected.

    Hi Benito.
    I'm not very familiar with MSS but maybe the following will help a little bit.
    Depending on the version of your SAP system you can use the transaction DBACOCKPIT to add connections to non-SAP databases. There is an test connection button in that transaction, too. You will find some information about that transaction in some whitepapers here in the SDN. For example have a look at this one: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1062428c-f1df-2910-b08f-c322feddcd10
    ADBC error 16 is just "something went wrong". Is your SAP system using MSS, too? If not you will need the matching DBSL for it on your SAP system.
    If you have set up an connection you can use program ADBC_TEST_CONNECTION to check if everything is ok. If I remember it correctly in case of errors it allows you to jump into the trace file. There you should find some usefull information.
    Perhaps asking in the Database&OS forum area (there is a MSS forum) might help, too.
    Best regards,
    Jan

  • Connection with Microsoft Access using Java on Linux

    Hi,
    I am very new to Linux & trying to move my application from Windows to Linux.
    I am downloading one database(*.mdb) file from an url & want to select records from tables & add them to my My Sql database.
    Is there any way to connect to Access database on Linux machine ( Without using different Windows machine having Ms Access installed).
    Thanks in advance.
    Regards,
    Veena

    I am having the same problem.
    jackcess worked fine with Access 2000.
    But i want to work with Access having previous version (probably 97).
    Is there any way to do this?

  • Database connectivity with BI 10.1.3.4

    Hi,
    I installed Oracle BI Enterprise 10.1.3.4 and next I want to connect Oracle 10g Database or Oracle 11g Database to access the tables to generate reports.
    Please help with the documentation or steps to connect with my local database.
    Thanks.

    Hi ,
    From Bipublisher you connect to the Database from Admin Tab.Check the below link
    http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/tutorials/obiee10g-453439.html
    It will be useful for you.
    Thanks,
    Ananth v

  • Database connection with LabSQL

    In my Application,I use the LabSQL which connected to SQLServer.but it should build the DSN out of the application,I want to know if create the DSN in the application ,what should I do ?
    In the LabSQL ,what should be written in the "connection string " for the "ADO Open connection" ?
    Thanks in advance!

    cdh wrote:
    > Hey I was attempting to do a simliar feat. I have set up a system DSN
    > using the ODBC adminstrator to connect to my external mySQL server
    (across the Internet). My current method to use the Open DB connectivity
    VI is to use set prompt = true and manually enter the information reffering
    to my system DSN. Is there another way to point to this DSN (ideally w/
    prompt = False)?
    Well LabSQL uses ADO and I assume you use the myODBC driver to connect
    trough ADO to mySQL. As such you are ultimately going through the ODBC
    manager at some point and the ConnectionString property of the
    Connection object can define all the settings an ODBC user would specify
    to connect.
    At
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdrefodbcprovspec.asp
    the syntax of the ConnectionString is defined. If you set this property
    of the Connection refnum before you issue the Open method call and leave
    the parameters of the Open call all empty the connection will be made
    with the parameters from the connection string. In addition to any ODBC
    driver specific attributes you can define following attributes in the
    connection string:
    "[Provider=MSDASQL;] { DSN=name | FileDSN=filename } ;
    [DATABASE=database;] UID=user; PWD=password"
    The provider attribute can be omitted since this is the default ADO
    provider.
    Alternatively you can skip the entire DSN setup by specifying directly
    all necessary parameters as attributes:
    "[Provider=MSDASQL;] DRIVER=driver; SERVER=server;
    DATABASE=database; UID=MyUserID; PWD=MyPassword"
    Just add myODBC specific attributes to the end of these strings if
    necessary.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Slow database connection with mysql

    I am using MySQL Server 5.0 as my backend and java1.5 as my front end for the GUI. The following statements I use to connect to MYSql.
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    String url = "jdbc:mysql://localhost:3306/mysql";
    The database access seems to be very slow.
    I have a data file with about 3000 lines. The parser reads the file one line at a time, formats an insert query and calls executeUpdate. The process takes more than 2 minutes.
    What is slowing down my process? Please help
    Thanks

    I am using MySQL Server 5.0 as my backend and java1.5
    as my front end for the GUI. The following statements
    I use to connect to MYSql.
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    String url = "jdbc:mysql://localhost:3306/mysql";
    The database access seems to be very slow.
    I have a data file with about 3000 lines. The parser
    reads the file one line at a time, formats an insert
    query and calls executeUpdate. The process takes more
    than 2 minutes.
    What is slowing down my process? Please help
    ThanksHi,
    1. Are you opening and closing the database connection ,During inserting every record from data file?
    If so, please avoid opening closing connection for each query execution.
    Because , opening and closing the database connection is a time consuming one.
    You should open all the required database connections, before you use them or use
    Database connection pooling if your application is sucah a big one.
    2. Try PreparedStatment instead of Statement. Because Prepared statment query is
    compiled and stored into Cache. so if you are executing the same query again and again, the compiled query will be picked up from cache, by replacing with new
    parameters
    3. Check the logic you used to pick record from datafile and insert into database .
    4. Check your RAM size , if you installed database and jvm on same machine.
    if so , increase your RAM size.
    thanks,
    nvseenu

  • SQL Server Database Connectivity with Visual Studio 2012 - Help Needed

    Hello,
    I am having Visual Studio 2012 and SQL Developer 4.0 installed on my system with Windows 8 - 64bit
    I want to shift a VS project with an SQL database connectivity to another new Laptop (above mentioned) ...
    I have the project opened in VS without bieng connected to the database.. 
    I have a backup file of the database (which needs to be restored to a new created database on SQL Developer) 
    The problem:
    I am unable to create a server connection in SQL Developer which will allow me to create a new database followed by the recovery from backup file.
    I am getting the following error message when I try to create a connection:
    Status: Faliure - IO error: The network adapter could not establish a connection
    Please help me in setting up a server connection and adding a new sql database

    The error message seemed unfamiliar to me and since I had never heard of SQL Developer before, I went to Google. Google might be pulling my legs, but it appears that SQL Developer is related to Oracle. This forum is devoted to SQL Server, so you are in the
    wrong place.
    Try finding a forum for SQL Developer.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for