Cvi mysql access database

Using CVI 9.0.1, using a 32 c# .dll, that I imported into my design using the .net import tool. When I try to create a database object I get this error msg:       
  message = Could not load file or assembly 'MySql.Data, Version=6.7.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.
Here is my code
    int retVal;
    char * message = NULL;
    char * source = NULL;
    char * trace = NULL;   
    char * help = NULL;
    char * target = NULL;
    char * dbPtr = NULL;
    char * SQLptr = NULL;
    char * record = NULL;
    VBOOL connectFlag;
    /* dot net variables */
    sbCommonFunctions_Database dbHandle;
    CDotNetAssemblyHandle DotNetHandle;
    CAObjHandle databaseObj = 0;
    CDotNetHandle dnHandle;
    char dbLocation[] = "c:\\obsoleteparts.mdb"    ;
    dbPtr =  dbLocation;
    SQLptr = sqlStr;
    errorTxt[0] = 0;
    // register assembly files
    retVal = CDotNetRegisterAssemblyPath("mscorlib","C:\\Window​s\\Microsoft.NET\\Framework\\v2.0.50727\\mscorlib.​dll");
    retVal = CDotNetRegisterAssemblyPath("System.Data","C:\\Win​dows\\Microsoft.NET\\Framework\\v2.0.50727\\System​.Data.dll");    
    retVal = CDotNetRegisterAssemblyPath("System","C:\\Windows\​\assembly\\GAC_MSIL\\System.Windows.Forms\\2.0.0.0​__b77a5c561934e089\\System.Windows.Forms.dll");    
    retVal = CDotNetRegisterAssemblyPath("System.Drawing","C:\\​Windows\\Microsoft.NET\\Framework\\v2.0.50727\\Sys​tem.Drawing.dll");    
    retVal = CDotNetRegisterAssemblyPath("ADODB","C:\\Windows\\​assembly\\GAC\\ADODB\\7.0.3300.0__b03f5f7f11d50a3a​\\ADODB.dll");    
    retVal = CDotNetRegisterAssemblyPath("MySql.Data","C:\\Etes​t_version_NI\\sbcommonfunctions\\x86\\mysql.data.d​ll");   
    retVal = CDotNetRegisterAssemblyPath("log4net","C:\\Etest_v​ersion_NI\\sbcommonfunctions\\x86\\log4net.dll");
    retVal = CDotNetRegisterAssemblyPath("MySql.Data.Entity","C​:\\Etest_version_NI\\sbcommonfunctions\\x86\\MySql​.Data.Entity.dll");   
    retVal = CDotNetRegisterAssemblyPath("MySql.Web","C:\\Etest​_version_NI\\sbcommonfunctions\\x86\\MySql.Web.dll​");
    retVal = CDotNetRegisterAssemblyPath("MySql.Data.CF","C:\\E​test_version_NI\\sbcommonfunctions\\x86\\MySql.dat​a.cf.dll");  
    // load assembly files
    retVal = CDotNetLoadAssembly("mscorlib",&DotNetHandle);
    retVal = CDotNetLoadAssembly("System.Data",&DotNetHandle); ​   
    retVal = CDotNetLoadAssembly("System",&DotNetHandle);    
    retVal = CDotNetLoadAssembly("System.Drawing",&DotNetHandle​);    
    retVal = CDotNetLoadAssembly("ADODB",&DotNetHandle);    
    retVal = CDotNetLoadAssembly("MySql.Data",&DotNetHandle);    
    retVal = CDotNetLoadAssembly("log4net",&DotNetHandle);
    retVal = CDotNetLoadAssembly("MySql.Data.Entity",&DotNetHan​dle);
    retVal = CDotNetLoadAssembly("MySql.Web",&DotNetHandle);
    retVal = CDotNetLoadAssembly("MySql.Data.CF",&DotNetHandle)​;
    // init .net dll
    retVal = Initialize_sbCommonFunctions ();
    // create database object (FAILURE OCCURS HERE)
    retVal = sbCommonFunctions_Database__Create_2 (&dbHandle, dbPtr, &dnHandle);
    retVal = CDotNetGetExceptionInfo(dnHandle,0,&message,&sourc​e,&trace,&target,&help);
I manual load all the assembly files, as shown in the code. I have also registered the .dll through regasm. I also tried dropping all of the files into c:\windows\syswow64, and ran into the same issue. Computer is running Windows 7 64-bit, .dll uses .net 3.5 & 2.0 components. Any ideas would be great I am pretty stumped at this point.
-Justin

Hi klumppster,
Can you open up MySql.Data in the MySQL Workbench?  It could be something with the ODDC or OLE driver, depending on what you are using.  Can you post the MySQL.data file so I can look at it?
Peter T
Applications Engineer
National Instruments

Similar Messages

  • How to compact and repair a MS Access database with NI CVI 8.5 (and SQL Toolkit)

    Hello
    I'm using the SQL Toolkit with CVI 8.5 for accessing MS Access Databases.
    Is there a possibility to compact and repair the .mdb file with  CVI?
    Thanks in advance.

    Hello Ulrich,
    with compact and repair I mean the MSAccess function "Compact and Repair".
    Please follow the link below for more details:
    http://office.microsoft.com/en-us/access-help/compact-and-repair-an-access-file-HP005187449.aspx
    Normally you can execute this function directly in Access or with the Windows ODBC Data Sources Administrator  => "Control Panel" => "Administrative Tools" => "Data Sources (ODBC)"...
     I want to execute this function via cvi code and not by hand ;-).
    Thank you for your support.
    Frank

  • Error while connecting to Access Database from Oracle

    Dear All,
    I'm trying to connect Oracle 9i to Access Database.
    but im getting the below error while executing query.
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQLi did the following thing through to connect the database.
    1) First i made odbc driver called ODBC1
    2) I create the following file on oracle server C:\oracle\ora9I\hs\admin\initodbc1.ora
    i edit the below thing in initodbc1.ora
    HS_FDS_CONNECT_INFO =ODBC1
    HS_FDS_TRACE_LEVEL = ON3) I made some changes in sqlnet.ora
    SQLNET.AUTHENTICATION_SERVICES= NONE
    before it was *NTS*4) Below are the entries in tnsnames.ora i changed the port from 1521 to 1522 cos 1521 already exists.
    ODBC1.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODBC1)
    ODBC1.WORLD =
      (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522)
      (CONNECT_DATA =
          (SID = ODBC1)
      (HS=OK)
    )5) Listener file code
    ODBC1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = orcl)
         (SID_DESC =
          (PROGRAM = hsodbc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = ODBC1)
      )6) after that i created
    SQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD'
    Database link created.7) Listener Status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                04-MAR-2012 20:52:33
    Uptime                    0 days 0 hr. 33 min. 44 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "ODBC1" has 1 instance(s).
      Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfullyi did exactly what documentation says and it will not through any error but atlast when i try to access the access database tables it give me the below error
    SELECT * FROM DBO_COMPANY@MYSQL
    ERROR at line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    NCRO: Failed to make RSLV connection
    ORA-02063: preceding 2 lines from MYSQLi'm using Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will appreciate.
    Regards
    Moazam
    Edited by: Moazam Shareef on Mar 4, 2012 10:25 AM

    first of all thanks for your support Mr. Kgronau
    I did what u said but still its giving me below error.
    SQL> SELECT * FROM DBO_PATINS@MYSQL
      2  ;
    SELECT * FROM DBO_PATINS@MYSQL
    ERROR at line 1:
    ORA-12154: TNS:could not resolve service namei re-check the service, and restart the listener as you said below are the logs could you help me to solve this issue plz.
    TNSNAMES.ORA
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora9I\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    ODBC1 =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = ODBC1)
    INST1_HTTP.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = SHARED)
          (SERVICE_NAME = MODOSE)
          (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA.TADAWI.LOC =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
      )LISTENER.ORA
    # LISTENER.ORA Network Configuration File: C:\oracle\ora9I\NETWORK\ADMIN\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    ODBC1 =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS_LIST =
            (ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
    SID_LIST_ODBC1 =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = ODBC1)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = hsodbc)
        (SID_DESC =
          (GLOBAL_DBNAME = ODBC1)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = ODBC1)
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\ora9I)
          (PROGRAM = extproc)
        (SID_DESC =
          (GLOBAL_DBNAME = orcl)
          (ORACLE_HOME = C:\oracle\ora9I)
          (SID_NAME = orcl)
      )then i restart both listener entries (ie lsnrctl start ODBC1 and lsnrctl start ) and both are running fine without any error below are the status.
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:42:09
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                05-MAR-2012 18:32:15
    Uptime                    0 days 0 hr. 9 min. 56 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\listener.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 2 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
      Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
      Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfullyLISTENER.ORA ODBC1 status
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:41:52
    Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1522)))
    STATUS of the LISTENER
    Alias                     ODBC1
    Version                   TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
    Start Date                05-MAR-2012 18:32:08
    Uptime                    0 days 0 hr. 9 min. 46 sec
    Trace Level               off
    Security                  OFF
    SNMP                      OFF
    Listener Parameter File   C:\oracle\ora9I\network\admin\listener.ora
    Listener Log File         C:\oracle\ora9I\network\log\odbc1.log
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1522)))
    Services Summary...
    Service "ODBC1" has 1 instance(s).
      Instance "ODBC1", status UNKNOWN, has 2 handler(s) for this service...
    The command completed successfullyWhere hope i'm near to retrive the access data.
    Regards
    Moazam

  • Access database in a WAN

    Hello:
    I have to develop an application in Director that will use
    one Access
    Database in two LAN in different cities.
    So I will need to connect these LAN's via Internet. (10 users
    in every LAN
    with XP client)
    Do you think DatagripNet is OK for this purpose or do you
    suggest me other
    third party software?
    thank you

    > This link does not work :
    http://www.shocknet.org.uk/
    You're right. I have seen it being down before. Give it some
    time - it will
    hopefully be back.
    > Well I am most confused now. I don't know program in PHP
    or ASP. This can
    > not do it with Lingo?.
    When shocknet.org.uk is back, you'll see that - besides very
    good tutorials
    in all the net stuff - there is a collection of scripts,
    prepared for your
    situation.
    1. A lingo behaviour to send a postNetText call to the
    ASP/PHP script on
    the server where your database is.
    2. PHP/ASP script (depending of what the server supports - so
    your choice):
    The script does the following:
    - recieve the call from your application
    - send a query to the database
    - process the result into a lingostring
    - and then return that string back to your application
    As far as I remember, all you have to do in the PHP/ASP
    script is:
    - add the correct connectionstring to the database.
    - specify the SQL string that corresponds with your needs
    (select, insert,
    update and so)
    > How to use SQL server with Director? some Xtras?
    The princip above will work for most kinds of databases,
    Access, MySQL and
    MSSQL for sure, meaning that you can change database, but
    keep the PHP/ASP
    script.
    You'll have to change the connectionstring to the right one
    though.
    There are SQL xtras, but I have ony experience in working
    with them locally
    (LAN)
    I'll repost this fine line from Andrew - it says somehow the
    same as my 20
    lines above...:
    [Your program]<->[Internet]<->[CGI program or ASP
    or PHP]<->[Database]
    If you are lost, then try to get help for the serverside, so
    you can
    concentrate on your application.

  • Problems with Dynamical SQL Querys on Access Databases!

    This thread is for everyone who has the same problems like me.
    I tried to change SQL-Querys via Javascript to fill in my PDF sheet some data from my database.
    But whenever I want to change the Query, I never get some data back.
    The main problem was:
    THE ACCESS DATABASE
    Access has locked the database whenever I tried to run the Query.
    Now Iam using MySQL and everything is working fine.

    This thread is for everyone who has the same problems like me.
    I tried to change SQL-Querys via Javascript to fill in my PDF sheet some data from my database.
    But whenever I want to change the Query, I never get some data back.
    The main problem was:
    THE ACCESS DATABASE
    Access has locked the database whenever I tried to run the Query.
    Now Iam using MySQL and everything is working fine.

  • Text file to Access database

    How to add Data from text file in to access database?pls guide

    No, he's claiming that MySQL has an "Import"
    statement (which maybe it does) and wants to know if
    MS Access has the same thing. Apparently he thinks
    this has something to do with Java programming.Interesting. Were I the OP, I would try File -> Open, or File -> Import, or some such command. Also I would try an Access forum rather than a Java one...

  • Using JSP to connect to an Access Database

    I need help on using JSP to connect to an Access database.
    This is the code I currently have connecting to a mySQL DB. I need to change it to connect to an Access DB. The reason I am switching DB's is because mySQL is no longer going to be carried by my host.
    Here is the code:
    <html>
    <head>
    <basefont face="Arial">
    </head>
    <body>
    <%@ page language="java" import="java.sql.*" %>
    <%!
    // define variables
    String UId;
    String FName;
    String LName;
    // define database parameters
    String host="localhost";
    String user="us867";
    String pass="jsf84d";
    String db="db876";
    String conn;
    %>
    <table border="2" cellspacing="2" cellpadding="5">
    <tr>
    <td><b>Owner</b></td>
    <td><b>First name</b></td>
    <td><b>Last name</b></td>
    </tr>
    <%
    Class.forName("org.gjt.mm.mysql.Driver");
    // create connection string
    conn = "jdbc:mysql://" + host + "/" + db + "?user=" + user + "&password=" +
    pass;
    // pass database parameters to JDBC driver
    Connection Conn = DriverManager.getConnection(conn);
    // query statement
    Statement SQLStatement = Conn.createStatement();
    // generate query
    String Query = "SELECT uid, fname, lname FROM abook";
    // get result
    ResultSet SQLResult = SQLStatement.executeQuery(Query);
         while(SQLResult.next())
              UId = SQLResult.getString("uid");
              FName = SQLResult.getString("fname");
              LName = SQLResult.getString("lname");
              out.println("<tr><td>" + UId + "</td><td>" + FName + "</td><td>" + LName
    + "</td></tr>");
    // close connection
    SQLResult.close();
    SQLStatement.close();
    Conn.close();
    %>
    </table>
    </body>
    </html>
    Thank You,
    Josh

    <%@ page language="java"%>
    <html>
    <head>
    <title>
    First Bean
    </title>
    <%@ page import="java.sql.*" %>
    </head>
    <body>
    <p>
    <%!
    Connection con;
    Statement st;
    ResultSet rs;
    String userid;
    String password;
    %>
    <%!public void db(JspWriter out)
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    con=DriverManager.getConnection("jdbc:odbc:phani");
    catch(Exception e){}
    try{
    st=con.createStatement();
    rs=st.executeQuery("SELECT * FROM login");
    while(rs.next())
    userid=rs.getString("userid");
    password=rs.getString("password");
    out.println(userid);
    out.println("</br>");
    out.println(password);
         out.println("</br>");     
    }catch(Exception e){}
    try{
    con.close();
    }catch(Exception e){}
    %>
    <%db(out);%>
    </p>
    </body>
    </html>
    phani is dsn name
    login is table name
    Good luck
    phani

  • Microsoft Access database randomly locks itself??!

    Hi there
    Our Access database is doing something weird. Every so often
    (I think when we've had a busy day in terms of traffic) a .ldb file
    randomly appears in the directory where our database file resides.
    Whilst this .ldb file is in existance the CF application can't read
    (or write) to the database and thus eventually CF times out and
    returns an error (or the user's browser gives up and displays a 404
    error).
    Sometimes this .ldb file dissapears of it's own accord after
    a second or so, but at other times it doesn't go away again and we
    have to restart the server.
    - not ideal!
    does anyone know why this occurs?
    I've heard that running a deliberatly bad query (ie selecting
    from a non-existant table) can 'clear' this .ldb file - in fact we
    went as so far as to run such a query every 10 mintues as a
    scheduled task as a preventative measure - and although it 'feels'
    like this may have helped, we do still get these random .ldb files
    appearing every now and then and thus we have to restart the server
    our site is getting busier (450,000 page impressions last
    month) so maybe we need to migrate to a new database (mySQL
    perhaps?)
    however we don't want to go through all the pain of migrating
    to another database (is that hard to do?) only to find that wasn't
    the cause of our problem.
    any input would be very gratefully received.
    thank you very much.

    On 11/8 SafariTECH responded: "Access should never be used
    for a production site - it is a desktop database, not a server
    database." It IS a "desktop" database and NOT a "server" database,
    but that doesn't disqualify it from being used for a production
    site.
    At our company we have extensive (multiple-year) experience
    with Access on the back-end, and if you take the time to understand
    its limitations and account for them in your code, it can be used
    successfully. When we choose between Access or SQL Server on the
    back-end, it is based on expected traffic, ease of maintenance,
    footprint, and so on. In most cases we DO end up using SQL Server,
    but there are circumstances where Access -- even as a "desktop"
    database -- has proved a better choice.
    In a recent system we built, access to the web server and
    ColdFusion had to be extremely limited upon system deployment. No
    VPN, no modem, and a special arrangement with a third party to gain
    physical access. To minimize the system footprint while designing
    for completely-hands-off, 24x7 operation, we needed a pair of
    servers with shadowing and automatic failover if the primary system
    died. If we had chosen SQL Server, it would have required its own
    server box, and we would have had to double these up as well. This
    costs more money and adds yet more complexity.
    Given what we knew would be the traffic through the
    dedicated, private site with a handful of users at any one time, we
    decided that a server-class DB was unnecessary, and in any case,
    would force us to add hardware that itself could be a source of
    system failure. This was the deciding point in favor of Access.
    All aspects of the system that directly relate to Access have
    been running successfully, except the issue reported initially by
    happysailingguide. We experienced the same issue, which appears to
    be a ColdFusion-induced error, and not something inherent to Access
    or the fact that it's a desktop database. (Based on what evidence?
    We use Access in many automated telephone applications which are
    written in Perl instead of ColdFusion, and this problem has NEVER
    been seen in the 5+ years of production usage.) In our case it
    appears there are NO requests queued to Access at the time of the
    lockup, and the lock can last forever unless we take programmatic
    intervention.
    As anybody who has built and deployed many production sites
    knows, you must simply accept the fact that no hardware or software
    is error-free (yours or anybody else's). The described Access
    lockup is just one of these errors (and is probably pretty low on
    Adobe's list of things to fix). With a different DB there wouldn't
    be the same problem, but there would be another to take its place,
    perhaps increased system failures because of the increased
    complexity of the system, or the downside of greatly increased
    costs when replicating the system.
    When I was trying to decide on the Access vs SQL Server
    question a couple years ago, I read the forums and web discussions
    about how Access should never be used for a production site. There
    were many scary statements about Access that nearly prevented me
    from using it. But at the advice of a colleague who has used Access
    for several years in a telephony app with 100 or more simultaneous
    callers, I stared a little more at the timestamps on the
    statements, and found they were from a long time ago (in
    computer-years). Microsoft has made MANY improvements to Access
    over time. For anybody facing the same decision, you will find it
    worthwhile to consider Access if cost, complexity, and footprint
    are important factors.

  • Microsoft access database

    Hello All,
    How can i talk to a microsoft access database from java without being on a windows machine?
    Thanks

    You don't want to.
    MSAccess is not running as a server on the win machine: the machine might not be up all the time....
    Anyway you would need to have the right url / system dsn in the jdbcodbc driver. I do not know if the driver supports the javax.sql.DataSource ....
    So there is enough against you right from the start.
    Can you upsize your MSAccess to MSSQL on a win server ? (or any other DB on a server with the right driver from your target?... could be MYSQL)
    Enjoy

  • Saving a complete date to access database

    Hi, I am currently struggling with databases and dates, the database I use is an access database (It's obligated in the assignment). Now, what I want to do is save a COMPLETE date into the database, with this I mean: day,month,year,hour (minutes and seconds aren't necessary, but I can just put them to 00:00). Any ideas how I can add this to an access database AND order the entries by these dates? Or is it just not possible with access? (I know how I could do this in mysql, but as I said is is not allowed)

    ok, but I have to say I'm new to the whole preparedstatement thing, I tried what you said, but now I get an 'arrayindexoutofboundsexception', any ideas on why this happens? here's the most important piece of the code:
                   dbconn = new DbConnect();
                   PreparedStatement pstmt = dbconn.getConn().prepareStatement("INSERT INTO Reservaties (datum,sorteerdatum,uur,terrein,gebruikersnaam) VALUES ('?',?,?,?,'?')");
                   pstmt.setString(1,reservatie.getDatum());
                   pstmt.setTimestamp(2,reservatie.getSorteerDatum());
                   pstmt.setInt(3,reservatie.getUur());
                   pstmt.setInt(4,reservatie.getTerrein());
                   pstmt.setString(5,reservatie.getGebruikersnaam());
                   pstmt.executeUpdate();
                   dbconn.close();

  • Deploy access DataBase

    when deploy a jsp application where will we put our access database,i mean folder location . is it server based location or or inside our root folder

    Your db would normally be outside your web application.
    In the case of MySQL, the database acts as a server, listening on a port so can be accessed from anywhere on the network.
    Im not so sure how access works, but a similar trick is performed by ODBC

  • Connect to a remote MS Access database using RmiJdbc

    Hello,
    I want to access a remote MS Access database from oracle stored procedures.
    Does anyone know how i can load the RmiJdbc driver using the loadjava command or with any other way.
    Because when i try to load RmiJdbc.zip using the loadjava command I am getting the error:
    ORA-29533:attempt to overwrite class or resource string while defining or compiling scott.TestClient
    this error is occured for multiple files...
    I don't know how to delete this classes.
    Because this error occured and the first time i tried to load Rmijdbc driver.
    and when i use the dropjava command to drop it,and then load it again the same error occures.
    Can anyone help me how to load this driver?
    Please answer because i need it as soon as possible.
    Thanks

    Hi,
    try this.
    String s = "UPDATE AGENT SET afname='test',alname='u',city='d',AGENT.[percent]=1 WHERE aid=23";
    -------->AGENT.[percent]

  • How to Protect your Custom Access Database Product - so that you can sell & distribute it?

    I'm looking for an update on this topic as I have been away from Access for a couple of years and have not kept up with the latest.
    Hopefully they have made it easier to design, develop, sell and distribute custom database solutions. So here goes...
    Question A:
    If one develops a custom database product with Access 2013 what is the current best way to...
    1 - Prevent it from being (too easily) copied
    2 - Prevent it from being (too easily) reverse engineered
    3 - Prividing a time limited free demo copy?
    4 - Providing a demo copy with limited functionality... like limiting the number of records in an important table, or whatever?
    5 - What have I left out of this list that should be considered for protecting ones investment in the development of the product? (other than copyright, of course.)
    Question B:
    What is the latest on being able to migrate an Access database to the cloud?
    1 - Entirely online
    2 - Part in the cloud and part on the users machine
    3 - And what about all that VBA code - is there no way to make that work in the cloud and/or on a web server... or does it all have to be tossed and all the coding redone?
    Question C:
    What are other alternatives solutions for selling your custom database application while protecting all your investment in developing it?
    1 - Write the front end in C++  (so that it is fully compiled) and the back end in ASP with MS SQL Server? (or alternative server side solutions)
    2 - Write the whole thing as a server side solution with browser interface?
    3 - Or what?
    Thanks for any help.

    Hi Fran_3,
    >>What is the latest on being able to migrate an Access database to the cloud?
    In my option, the Access Web app would be a better choise.
    Regards,
    Tony
    Help each other

  • "Connection is closed" closed error while using MS Access database

    We are using MS Access database in our project. Recently the database was upgraded to 2000.
    After upgrading the database, I get the folowing error when getAutoCommit() is called on a connection -
    java.sql.SQLException: Connection is closed
         at sun.jdbc.odbc.JdbcOdbcConnection.validateConnection(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcConnection.getAutoCommit(Unknown Source)
    The connection is not closed explicity before getAutoCommit() is called, only the statement is closed.
    This error is sporadic and occurs under load scenario only (when a lot of connections are open). Once the error occurs, all the database calls fail then onwards. The error was not occuring before the database was upgraded.
    I suspect the jbdc-odbc driver. The driver might not be compatible with Access2000 database. Under load scenario, it might be closing connections automatically.
    Has anybody faced similar problem before? Where can I find the compatible jdbc-odbc driver? And how to ensure that it is jdbc-odbc driver problem only?
    The database verison - MS Access 2000
    Java version - 1.3.1_01

    can i just point out that there is no support for transactions in Access so I wonder why you are calling autoCommit methods at all...

  • Access of ms access database and displaying it on applets

    I had made the connection thru JDBC and was able to access data from MS Access database when i had written java application program. But when i created one applet and created instance of that class which was making connection to the database thru JDBC and called one method which was returning one value from the database , i was not able to get on the applet(in the text field) . It gave me some security exception saying acces is not allowed.
    Please give me the reason for this and send me reply back on this email id
    [email protected]

    Welcome to the club. There is an on-going discussion from which I too would like to learn this. Try http://forum.java.sun.com/thread.jsp?forum=31&thread=174953.
    Best Wishes.

Maybe you are looking for

  • USB LaCie Porche 500gb usb external drive won't mount

    Here is the scoop. A few days ago I was using my LaCie 500gb external drive and the usb chord was accidently yanked out whilst adding a photo to iphoto. So i thought uh oh better close everything disconnect wait a while then restart. So I did...plugg

  • JMS Adpater Question

    I am trying to implement the JMSAdapter in the two way mode. I have configured the queues and have configured the JMS Adapter appropriately. I do see the response being generated but the correlation doesn't seem to work. Error Message: Fault ID     r

  • Error 2709: Offline join completion information was not found.

    This error is occurring when attempting to install a VB 6.0 application.  It has occurred on several versions of Windows.  It doesn't happen on many machines and we cannot determine what difference makes it occur.  Removing KB2918614, KB3000988 and/o

  • Where can I find files that I have dowloaded from the internet

    I have tried many times to open pdf or other type of files in attachments to email and from the internet. However I am never able to actually find (much less open) these files. Can anyone tell me where they are stored and how to access them? I will n

  • I can not access to buy in line pop

    I can not use account to buy in line pop