Connecting Access 2000!?

Hi !
I'm experiencing problem with my current Access connection.
It's working for a while but causes an error.
I'm using this code:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
String url = "jdbc:odbc:DNS_name" ;
Connection con = DriverManager.getConnection( url , "" , "" ) ;
Statement stmt = con.createStatement();
ResultSet itom = stmt.executeQuery( "SELECT * FROM TABLE" ) ;
Could you help me by giving me an other way to connect my database.
Another driver?
Another code syntax?
Thanks...

Could you help me by giving me an other way to connect my database.You could buy a commercial solution.
But I doubt that would help. Since others have connected to that database I would guess that your code is wrong.
However, you didn't specify what the problem is (compile, exception, no result, etc) so it is rather hard to diagnose what the problem is.

Similar Messages

  • Urgent Help needed : Connecting Access 2000 with forms 6i

    Dear friends,
    I am really struggling to solve this connection issue. I am working with forms 6i, oracle 8i, in Windows XP pro environment. Developing programs using oracle 8i tables is ok, but there are tables in Access 2000, which I have to add the program that I am developing. The things I have done are
    - I have already tables in MS Access databse.
    - I Installed ODBC for microsoft and for Oracle as well(which . I added the MS Access Database there and I can perfom SQL from Oracle ODBC.
    - I also installed OCA for developer from the CD.
    From this point I followed the instructions in Developer Help menu and I was not able to connect and still trying, I will appreciate if anyone provide me sometips. Thanks in advance
    Best Regards

    Hi,
    I know the bad solution. But anyway, I'll tell you in any kind of help. I also had an AccessControlException when I started a RMI client program using JFileChooser. I rewrote policy files again and agin, but in vain. The last and ultimate method I did was remove the RMISecurityManager. This is obviously dangerous in the Internet, but if you use your application in the intranet or in some kind of safe environment. There would be no problem.
    Hope this could be any kind of your help.

  • Problem of security using ADO from Labview to connect to Access 2000 Data Base

    I have a problem using ADO from Labview to connect to Access 2000 Data Base.
    First I open a ADO_DB_Engine and create a Workspace as an ODBCDirect. After I execute the open_data_base using the workspace. Here you can specify the parameter connect with /type of connection / user / password.
    The problem is the following:
    Although you configure a password for the Administrator user in Access, you can read/writte to data base from Labview using ADO without any security and without putting the user and password in the parameter connect. I need to access with security to data base using users and permissions but it seems that the parameter connect does not operate.
    I attach
    you a example of the vis and database. Remember create a ODBC connect with BD3.mdb
    Thanks a lot
    Peter Mst
    Attachments:
    SECURITY.zip ‏70 KB
    BD3.mdb ‏112 KB

    Hi Kahn,
    If you use ADODB_connection -> Connection.Open and set in connection string :
    "Provider=Microsoft.Jet.OLEDB.4.0; Jet OLEDBystem Database=c:\.....\Protegida5.mdw; Password=pepe;user ID=jose; Data Source:c:\......\BD5.mdb";
    and after connection.execute ->
    INSERT INTO tabla1 VALUES (5,'XXX'
    you will be able to access to the database with security using the provider=Microsoft.Jet.OLEDB.4.0. With this provider you have to use the path and the name of the database file c:\.....\mdb file. From this way the problem is solved. (SEE SAMPLE_ADO_W2_JET.VI).
    BD5.mdb have the following administrator user: user:jose / passwordepe (Protegida5.mdw)
    The problem is when you want to
    use ODBC and DSN. The name of this ODBC Provider is MSDASQL;. If you use this type of connection you can not enter to the database I attach you.
    This database has a new administrator owner. I deleted the default administrator. If you support the default administrator you can connect to database by ODBC / DSN but the security disappear because you can always enter to database with any password, user o PC.
    FINALLY I HAVE 3 QUESTIONS FOR Application Engineers of National Instruments or someone who knows these subjects before deciding the best way to connect locally o remotely with security to Access from Labview:
    1.- Is it possible to enter to Database BD5.mdb from ODBC and DSN with this owner?
    2.- I want to connect remotely to Access database too. Is it possible to use Microsoft.Jet.OLEDB.4.0 using the path (.mdb file) without DSN?
    3. Which is the optimal Provider for Microsoft Access?
    I thank you beforehand for your technical support.
    Peter Mst.
    Attachments:
    BD5.mdb ‏116 KB
    Protegida5.mdw ‏112 KB
    sample_ADO_W2_JET.vi ‏45 KB

  • Developer 6 and MS Access 2000

    Is it possible to use Developer 6 with MS Access 2000 database
    and how ?
    Thanks
    null

    Create an ODBC datasource for Access database.
    Then in the Forms 6.0 connect using the following host string
    'odbc:name_of_your_odbc_source'
    Asad Kayani
    Pakistan
    null

  • SQL query works in access 2000 but not through JDBC

    Hello to all as my first posted message, I have a bit of a pickle on my hands. I have a query which is critical to for my application to function.
    In Access 2000
    SELECT sb.SeatName
    FROM SeatBooking sb, Movie m, MovieSession ms, Booking b
    WHERE m.MovieId = ms.MovieId
    AND ms.MovieSessionId = b.MovieSessionId
    AND b.BookingId = sb.BookingId
    AND ms.DateOfSession = #2003/04/16 07:15:00 PM#;
    This query works fine. When I insert it into my code
    String query = "SELECT sb.SeatName \n" +
    "FROM SeatBooking sb, Movie m, MovieSession ms, Booking b \n" +
    "WHERE m.MovieId = ms.MovieId \n" +
    "AND ms.MovieSessionId = b.MovieSessionId \n" +
    "AND b.BookingId = sb.BookingId \n" +
    "AND ms.DateOfSession = #" +
    cp.getMovieSessionAt(i).getTrueTimeOfSession() + "#;";
    The last line of code returns #2003/04/16 07:15:00 PM#; Which is the exact same as in Access.
    To rule out some possibilities
    - there are other less complicated queries which access the same database but work fine. so my code seems to be ok
    - I have tried to use Format() on ms.DateOfSession to match the return value of the java statement (Which is a general date in Access in the format of 16/04/2003 7:15:00 PM)
    Any suggestions would be appreciated!

    Hi Simon,
    On my Windows XP system with J2SE SDK version 1.4.1_02 and Micro$oft Access 2002, I have the following table:
    column name    column type
    id             Number
    name           Text
    updated        Date/TimeUsing the JDBC-ODBC bridge driver (that is part of the J2SE distribution), the following code uses the JDBC "escape" syntax -- and it works.
    import java.sql.*;
    public class JdbcOdbc {
      public static void main(String[] args) {
        Connection dbConn = null;
        ResultSet rs = null;
        Statement stmt = null;
        String sql =
          "SELECT * FROM Table1 WHERE updated = {ts '2003-04-13 07:53:23'}";
        try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          dbConn = DriverManager.getConnection("jdbc:odbc:db1");
          stmt = dbConn.createStatement();
          rs = stmt.executeQuery(sql);
          if (rs.next()) {
            System.out.println("id      = " + rs.getInt(1));
            System.out.println("name    = " + rs.getString(2));
            System.out.println("updated = " + rs.getTimestamp(3));
        catch (SQLException sqlEx) {
          System.err.println("Database operation failed.");
          sqlEx.printStackTrace();
        catch (ClassNotFoundException cnfEx) {
          System.err.println("JDBC driver class not found");
          cnfEx.printStackTrace();
        finally {
          if (rs != null) {
            try {
              rs.close();
            catch (SQLException sqlEx) {
              System.err.println("ERROR: Failed to close result set");
              sqlEx.printStackTrace();
          if (stmt != null) {
            try {
              stmt.close();
            catch (SQLException sqlEx) {
              System.err.println("ERROR: Failed to close statement");
              sqlEx.printStackTrace();
          if (dbConn != null) {
            try {
              dbConn.close();
            catch (SQLException sqlEx) {
              System.err.println("ERROR: Failed to close DB connection");
              sqlEx.printStackTrace();
    }More details about the JDBC escape syntax are available here:
    http://java.sun.com/j2se/1.4.1/docs/guide/jdbc/getstart/statement.html#999472
    Hope this helps you.
    Good Luck,
    Avi.

  • Access 2000 with VBA code doesn't work in Access 2013

    I have a database that was created in Access 2000 with lots of VBA code to pull data from SQL for reports. When I try to run a report in 2013, I get 'file not found".  When I go into debug, it appears the forms for the reports are not being found. 
    How can I fix this?

    Good Morning MariS2,
    Did you verify the change in the connection type?
    Did you check all your references which are changed for the new version of Access?
    Just takes a click to give thanks for a helpful post or answer.
    Please vote “Helpful” or Mark as “Answer” as appropriate.
    Chris Ward
    Microsoft Community Contributor 2012

  • Date/Time Field in Access 2000 - INSERT INTO ... syntax error

    I am using Labview 6.1 Professional with the Database Connectivity Toolkit. When I execute this SQL Command "INSERT INTO PRODUCTION (Part, Passed, Date) VALUES ('Part#1', 2, '10/10/2003 10:10:10 AM')" I get a Run-Time Syntax Error. If I remove the Date Label and Date Value it works. What is the proper Format of the Date/Time Type Field in ACCESS 2000 for Labview 6.1 SQL? I have seen and tried all of the solutions already posted like MSG 1ZNAJHJ6.

    Well, if it's any consolation handling dates is a pain regardless of which database you use. In any case, I created a table with the following definition:
    CREATE TABLE testing
    (item1 INTEGER,
    item2 DATE)
    I them did the following insert:
    INSERT INTO testing
    VALUES (1, '18/11/1953 04:20:00');
    And everything worked fine. Note that in the date (my Bday, BTW) the format is DD/MM/YYYY followed by the time.
    What exactly is the error you're getting? Can you post the exact text of the error message. Also, I ran my test using the examples that come with LabSQL--not the toolkit.
    Mike...
    Oops, just noticed something. You have a column name that is probibly a reserved word "Date". Try your insert as:
    INSERT INTO PRODUCTION
    VALUES
    ('Part#1', 2, '10/10/2003 10:10:10 AM')
    If there is only those three columns and they the order the data appears is the same as the column order, you don't need the column list. If this works (and it should--I just tried it) I would only view it as a temporary patch. The column name should be changed.
    This is also a good reason to not use the Access GUI to create tables. If you tried creating a table like that in SQL you would have gotten an error message. Learning to build tables in SQL code isn't hard and it adds an extra layer of error checking that the GUI apparently doesn't think is important.
    If you're interested let me know and I can send you the info on a really good book on SQL...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Upgrading from Access 2000 to MS SQL Compact 3.5

    Post Author: AllenF
    CA Forum: Data Connectivity and SQL
    I am using Crystal Reports Basic for Visual Studio 2008.  I was wondering if anyone knows how I can upgrade my current Access 2000 based reports to use MS SQL Compact 3.5.  I'm mostly finished upgrading by application, other than the reports.  Any help is appreciated.

    Post Author: AllenF
    CA Forum: Data Connectivity and SQL
    I am using Crystal Reports Basic for Visual Studio 2008.  I was wondering if anyone knows how I can upgrade my current Access 2000 based reports to use MS SQL Compact 3.5.  I'm mostly finished upgrading by application, other than the reports.  Any help is appreciated.

  • Can i use Access 2000 for my JDBC program?

    I tried to run a JDBC program from a book and it worked. The problem is, it uses an outdated "Informix" database. I want to do it in Access 2000. Is it possible?
    Please give me a sample code if you have guys.
    Thanks
    Moses

    You have to create a DSN (Data Source Name) in Windows first. You name that DSN, and that name is what you use in your url (url = db connection string).
    Say you have Students.mdb.
    You create a DSN that points to that file and name it "studentdb", or whatever name you like (do this from the odbc data sources item in the windows Control Panel).
    You format your url in the format "jdbc:odbc:<DSN name>". IN this case, your dsn name is "studentdb", so the url would be "jdbc:odbc:studentdb". You were supposed to replace "myAccessDSN" with the name of your newly created DSN.
    The other two arguments are for username and password, which typically aren't needed for Access dbs.
    So in the end you execute the following:
    Connection con = DriverManager.getConnection("jdbc:odbc:studentdb","","");

  • Altering database during migration from MS Access 2000

    Hi to all Oracle forum members.
    I want to migrate a MS Access 2000 database to Oracle 9i release 2. I want to know how can I alter the database design during the migration progress. My plan is to split an existing table to more and re-arrange the data and maybe introduce some new tables as well. These changes cane be made using the Migration Workbench or after migrating to Oracle? What is the most efficient way to do that and how can I accomplish these changes?
    Thanks in advance...
    A desperate new Oracle user... :)

    Hello patriotaki! I used Oracle Migration Workbench and everything seems to be fine..just take care on code page migration isssues ...have fun!!!

  • MS Access 2000 and Oracle 8

    Hello,
    I need to provide access to a Oracle (v 8) table via MS Access 2000. I am doing so via Link Tables in MS Access.
    But I am not able to see the new tables that I created, in the list of tables available for linking from the Oracle schema, in Access.
    How can I rectify this?
    Thank you.
    Raj
    Message was edited by:
    user492218

    I think you'd need to contact Oracle support to get access to older versions of the driver.
    Since 8.0.5 isn't supported any longer, however, is it possible for you to update your Oracle client to one of the supported releases-- 8.1.7 or 9i?
    Justin

  • Change report tables from Access 2000 to SQL Compact 3.5

    Post Author: AllenF
    CA Forum: General
    I'm using CR10 that ships with Visual Studio 2008.  I want to upgrade several reasonably complicated reports to use SQL Server Compact 3.5 data.  The reports are currently using Access 2000 data.  Is there a simple way to go about this?  I REALLY don't want to have to recreate these reports.

    Post Author: AllenF
    CA Forum: General
    I'm using CR10 that ships with Visual Studio 2008.  I want to upgrade several reasonably complicated reports to use SQL Server Compact 3.5 data.  The reports are currently using Access 2000 data.  Is there a simple way to go about this?  I REALLY don't want to have to recreate these reports.

  • Unsupported Data Type (migration from Access 2000)

    Hi,
    I'm trying to convert an MS Access 2000 database, which contains a table with 2 'Binary' data type columns.
    The OMWB does not seem to know this Data Type, and the GUI does not allow me to add it. Is there any other way to add this Data Type ??
    I should somehow get it to convert to Oracle RAW.
    Generating the Oracle Model with the 'Binary' type in the xml file generates errors.
    thanx in advance,
    esther

    Log a ticket with support at otn.oracle.com/migration and give details of this. Include a test case to ascertain whether it is a bug or not.
    B

  • Connecting Access Databse to BI Publisher

    Hi,
    Please anyone tell me, how to connect MS Access database to BI Publisher.
    There is no explicitly drivers defined in JDBC Connection, so what should I use in this case as DriverType & Connection String.
    Hoping for quick reply.
    Thanks in Advance.

    Hi Vestrini,
    Thanks for your reply, but only connection string is not enough, what about Driver type, Database Driver Class, username and password.
    Please, provide some detail step to connect access database to BI Publisher.
    Thanks.

  • Using 'SYSDATE' function in ACCESS 2000?

    'SYSDATE' function is not working in ACCESS 2000 , is there any other
    alternative function available in access.
    I use a select statement using SYSDATE, but it did not work.

    I found it already.
    use the now() function.

Maybe you are looking for

  • How do I revert to a previous version of Flash Player?

    While we always recommend using the latest version of Flash Player, sometimes problems are encountered in a new release that were not present in a previous release.  If you are unable to work around these problems and they block functionality you rel

  • IMac 27" i7 quad.. System fonts too small.

    Title says it all. Just upgraded from a 24" 3.06 model and while I love everything so far, the main difference is that with the higher resolution, I can now barely read the menu bar fonts as well as browser menubars/bookmarks and even the system prof

  • Connecting up a mobile phone to a computer (via bluetooth?)

    Hi, I'm looking for the best way to connect up a mobile phone to a nearby computer (wirelessly) so that they are able to communicate with each other. Would bluetooth be the best way? Would it be as simple as buying a bluetooth dongle for the computer

  • Help with catchlight..Portrait help please

    Hi there I am looking for someone who know's about catchlight and Portrait, I have a photo of what I am aiming for, if someone who know's their stuff could please help?

  • Leading in combo box textfield

    Why the heck doesn't the leading get set on the textField in the combobox! ahhh!   The text format is being set correctly because the font/color/size are all good, and the dropdown is all good.  It's just the textField.. private var tf_arial_enabled: