Java + Access dbase - system DSN?

Hi, I have been developing in ASP for the last year, and one of the luxuries it has given me is the ability to open MS Access databases without needing a system DSN (use a file dsn instead).
Question: Is there a way to connect to an access database using a file dsn (without having to register the dbase in the dbase system) using JAVA??
Thanks in advance, Cel

Has nobody done this before??
any info would be grande`

Similar Messages

  • Setting System DSN for MS Access Database using Java Code

    How to set the system DSN for Access database using Java Code at runtime....???
    Replies are deeply appreciated...

    I found a 3rd Party MS Access JDBC Driver from a Google search. I downloaded and tried the free trial version. It worked fine but we opted not to purchase the full version and went a different route. If you don't find it, let me know and I'll see if I can track down the name of the product we tested.

  • Cannot access remote FoxPro dbf file using jdbc-odbc and system DSN

    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database. I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

    Laura Ren wrote:
    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database.What exception do you get? WebLogic is just like any other Java App. That code
    should work OK (though I have a better way)... Be warned that the JDBC ODBC
    bridge is specifically dangerous. It is not threadsafe.
    Joe
    I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

  • How to use VBScript to access a 32bit ODBC System DSN (Excel) on a Windows 7 64bit system?

    What is the correct way to connect to a 32bit System DSN (Excel) on a Windows 7 64bit system?
    I've recently switched from Windows XP Pro x32 to Windows 7 x64.  Now, one of my scripts that uses an ODBC connection will no longer work.  After a bit of searching, I discovered that Windows 7 x64 does not currently have 64bit Excel drivers.  However, you can set up 32-bit connections by running "C:\Windows\SysWOW64\odbcad32.exe".  Unfortunately, my script still won't work even though I set up the System DSN exactly like I did on my old computer.  When I run my script, I get the following error:
    Quote:
    Script:  X\XML_Check.vbs
    Line:  212
    Char:  3
    Error:  [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.
    Code:  80004005
    Source:  Microsoft OLE DB Provider for ODBC Drivers
    Line 212 contains:
    objConnection.Open "DSN=charge_codes_XLS;"
    It seemed to me that wscript.exe will only communicate properly with an identical environment (x32 to x32 or x64 to x64, but not x64 to x32 or x32 to x64).  With that in mind, I found a way around the error by running my script via the 32bit version of Windows Script Host.  I changed the shortcut path from "X:\XML_CHECK.vbs" to "C:\Windows\SysWOW64\wscript.exe X:\XML_CHECK.vbs" and the script appears to function ok. 
    What I really want to know is if there is a way to run my script via the 64bit version of wscript.exe yet have it connect to the 32bit ODBC subsystem? Is there a specific connection string I can use or am I just out of luck until Microsoft puts out 64bit Excel drivers?

    I faced the same issue recently. There was a 32bit MSOffice installed on the 64bit server and the same visual basic code worked from MS Office script debugger, and did not in the cscript/wscript.
    It seems that 
      - the  cscript/wscript used 64bit ODBC driver
      - the  office used     32bit ODBC driver
    Excel drivers are installed for 32bit ODBC (because of 32 bit office the ODBC manager 32bit was a full hand of drivers).
    Excel drivers are NOT installed for 64bit ODBC manager (because of 32 bit OFFICE) and can not be installed while the 32bit MS OFFICE is installed.
    The SQL drivers are installed for 64bit ODBC (so that is why the SQL connection was established well)
    The solution would be to run .js .vbs scripts in 32 bit environment:
    \windows\SysWOW64\cscript.exe or \windows\SysWOW64\wscript.exe 
    Search for more with: how do i run a vbscript in 32 bit mode on a 64 bit machine

  • [Integration Engine Configuration Data] Error: No access to system landscap

    Hi all,
    When configuring Integration Engine Data (To go to 'Integration Engine Configuration Data' screen: Tcode: SXMB_ADM -> Choose: Integration Engine Configuration -> F8), we want to load Configuration from System Lanscape by choose F6, an error occur with message as below:
    No access to system landscap
    So that we can't load configuration from our System Landscape.
    We have correctly configured other below:
         - We use http port for corresponding Integration Server.
         - Business System with role 'Integration Server' created correctly in SLD.
         - T-code SLDCHECK is all OK.
         - T-code SXI_CACHE is all OK.
    Anyone can please help me correct this error ?
    Point will be reward for any valuable answer,
    Thanks a lot,
    Vinh Vo

    Please can you check if your RFC destination SAPSLDAPI and LCRSAPRFC are working both ABAP and Java stack.
    just check the reply from Udo and jai's reply
    R3 Connecte XI 3.0  Problem
    also check page no 18
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283

  • Problem with System DSN (HELP!!!)

    We have a customer running Oracle 817. Our application (Powerbuilder-based) uses the Oracle 817 ODBC driver to connect to the DB.
    We normally set up a System DSN so that in situations where more than one user logs into the PC (using their own domain account), they will be able to use our application as well. In all of the situations in the past, we've never had multiple users needing access to the same computer at different times with different logins.
    Well guess what? We now have a customer that has three people accessing the same computer at different times with different logins.
    We set up the odbc with an Admin account, but only THAT Admin account can be used to access the DB using that System DSN.
    We've tested our app with SQL Server (ODBC) and Sybase (ODBC) as well using different logins and they work fine, but our app fails to connect to the DB using the Oracle System DSN!
    What is happening?????? We set up a File DSN for now and it works, but the customer prefers not having to save that info to a file.
    Any suggestions?

    1) How are you authenticating users? If you're using O/S authentication, do all the users have appropriate accounts on the database? (They do have the appropriate DB account)
    2) Did you specify a username in the DSN? Did you mean to? If you want multiple users to log on with different database accounts, don't specify a username. (the app uses the same username and password to access the DB)
    3) Can you elaborate on what "can't log on" means? I assume you get some sort of error message, so please post that. (it's telling us that the selected datasource is invalid.)
    4) Can you simply create a user DSN for each Windows user account? We could and we did and it works fine that way, but the System DSN eliminates the need for that. We would have to set up DSNs for each PC (50+) that has more than one user.
    Justin

  • How to read System DSN entries -Urgent

    Hi,
    I need to show list of System DSN entries in JComboBox. So, I want to know the way of reading the entries in Java. Can you please help me ??
    Thanks in Advance
    Kumar

    please stop posting this question.
    the answer.. which you already know is JNI or native code. but a better question which was already asked of you is WHY do you want to show a list of available DSN's on a machine? it sounds like using a dynamic DSN would probably help you.
    please see here...
    http://forum.java.sun.com/thread.jsp?forum=48&thread=200603
    if dynamic DSN's will not help you and you MUST retrieve a list of DSN's available on a system you are looking at native code to do this... good luck.

  • ODBC System DSN's are invisible in teh Data Sources even though they exist

    For a long time I had a problem with Windows XP Pro systems that had NI-DAQ installed.  These machines were ATE controllers which had Labview applications deployed with NI-DAQ cards.  I needed database connectivity through several system DSN's for Access, Pervasive, and SQL server.  The problem was that after I installed NI-DAQ all the system DSN's would disappear in the Data Sources control panel in windows.  Then if I tried to create them again it would say they were already there.  I could actually edit them by name, delete them and recreate them, but they would not appear in the WinXP Data Sources Manager.  They would exist, but would be invisible.  They actually worked fine from an application perspective, but would be a pain to edit or know if I had set one up or not.
    I finally solved it with the help of my network admin and I wanted to post the solution for someone else with the same problem:
    I solved the invisible ODBC problem. NI installs an ODBC DSN called Citadel 4. When this is installed it adds its entry via a registry setting. The problem is it changes the "Default" key in HKLM\Software\ODBC\ODBC.INI from "No Value Set" to blank. For some reason, when ODBC Manager reads the list in this key, the blank screws it up. Deleting the Default setting causes the Default setting to be recreated as No Value Set and all appears again.
    -Devin
    I got 99 problems but 8.6 ain't one.

    I've accidentally answered my own question. I did a Software Update including the combo update to take me to 10.5.8 (Jeez, that took AGES! do all Software Updates in Leopard take that long?) - then I launched Mail and suddenly everything was there - receiving messages, and the mailboxes full of my messages. Perhaps it was a bug in 10.5.6

  • Using System DSN Credentials in OBIEE 10g

    Hi Gurus/Experts
    This is what i read in one of the blogs... that If the Shared Logon option is not selected, connections through the connection pool use the database user ID and password specified in the DSN
    http://oracle-bi.siebelunleashed.com/articles/more-on-connection-pools/
    Thought of giving it a try..
    so created a System DSN
    In Connection Pool, Disabled the shared logon and chose the ODBC 3.5 and gave the DSN name from the dropdown.
    Now i am getting the below error in the Physical layer itself while viewing data...
    A general error has occurred. [nQSError: 16001] ODBC error state: 28000 code: 1017 message: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied.
    My Question
    Can we really  use the credentials from the  System DSN , if the Shared Logon is unchecked?
    Note: The DSN is working fine when i test it...
    Thanks
    Ashish

    Let me tell you what i did..
    My Rpd was working fine and i had Shared Logon thing checked...
    Then i read this blog... and i thought of trying it out.. ie trying to use System DSN's credentials to see data... [can we store password in System DSN?]
    After that i went to the connection pool and removed username and password ( ie gave blank or null there) and unchecked the shared logon thing.
    [If i am disabling the shared logon  then whether i give username, password or not should be immaterial .. right?]
    Now i saved the Rpd... and then tried to view the data in physical layer ... its throwing the above error... or in other words its not taking the credentials that i had given while creating System DSN in windows [ ie in Run  type odbcad32 then that DSN stuff]
    Make sure the Physical Schema in Physical Layer RPD (green folder) is same as you have schema name is Database. Its same
    If this option is not selected, connections through the connection pool use the database user ID and password specified in the DSN or in the user profile.Specified in the DSN... see i mean the System DSN ie accessed in windows... and i havent given any user specific logon in OBIEE...
    You can also check the checkbox for required fully qualified names..Its already done...
    Let me know if you need more details
    Thanks
    Ashish

  • Applet access to system Clipboard

    Hi all:
    I am creating a customized version of the mud telnet application for a customer. They have requested cut/paste functionality and I have been able to provide this capability. The problem is the applet cannot get access to the system clipboard so all cut/paste functions can only occur within the applet. I am able to access the system clipboard by creating a java.policy file and setting a permission. The problem is that most of the workstations, and a good number that will be using home computers running Win 98. They don't want the users to have to download the new JRE from Sun (although I know this works). I am looking for a way to creat a JAR file using the old JDK 1.1 (or the current toolkit if it is possible) that will allow access from the Applet to the System Clipboard. I have search the web for an answer, with no success. Can anyone give me any suggestions?
    Anybody had to do the same thing before?
    Thanks.
    John Kreiner

    I know this is an old thread, but I thought I would answer it.
    To access the clipboard via an applet, you need to use JavaScript.
    The first thing to do is to create a class that uses reflection to use the JSObject. The reason why reflection is used is because it is a pain (ITA) to specify a compatible binary for eacy java version (e.g. java40.jar, plugin.jar, jaws.jar, etc). Here is the class:
    import java.lang.reflect.*;
    import java.applet.Applet;
    public class JavaScript {
         public static void call(Applet applet, String methodName, Object[] param) {
              try {
                   Class js = Class.forName("netscape.javascript.JSObject");
                   Method callMethod = js.getMethod("call", new Class[] { String.class, Object[].class });
                   callMethod.invoke(getWindow(applet), new Object[] { methodName, param});
              } catch (Throwable t) {}
         public static Object getWindow(Applet applet) {
              Object o = null;
              try {
                   Class js = Class.forName("netscape.javascript.JSObject");
                   Method getWindowMethod = js.getMethod("getWindow", new Class[] { Applet.class });
                   o = getWindowMethod.invoke(null, new Object[] { applet });
              } catch (Throwable t) {}
              return o;
    }Now, when you want to copy something to the clipboard, you will do:
    JavaScript.call(someApplet, "copyToClipboard", text);
    BUT the "copyToClipboard" function has not been defined yet. This will be a JavaScript function in the html:
    <script language="JavaScript1.1">
    function copyToClipboard(text) {
         document.myForm.myInput.value = text;
         var rng = document.myForm.myInput.createTextRange();
         rng.execCommand("RemoveFormat");
         rng.execCommand("Copy");
    </script>And one last thing is that a JavaScript text component is required in order to create the "rng" variable. To do this, use a hidden field in the html:
    <form name="myForm">
         <input name="myInput" type="hidden">
         </input>
    </form>

  • Setting up ODBC System DSN

    I have successfully installed the Oracle 8.1.7.3.0 ODBC driver (through the Universal Installer) on a Win 2000 Pentium 4 pc. When I attempt to add a new System DSN using the installed Oracle ODBC driver, as soon as I select "Oracle in DEFAULT_HOME", I get the following error message... "The setup routines for the Oracle in DEFAULT_HOME ODBC driver could not be loaded due to system error code 126."...any ideas???? I am using Microsofts standard Microsoft ODBC for Oracle to access a few 8.0.5.2.0 databases, but when I try using that same driver to access the 8.1.7.3.0 database, I can only access 1 table from any schema. Help!!! I read elsewhere in this forum that the driver installed must match the Oracle client software version. If this is true, how do I determine what version my client software is (my SQL*Plus version is 8.0.5.2.0). Any recommendations?
    Thanks!
    Torrey

    It sounds like you have an 8.0.5 Oracle client. Try using the 8.0.5.x ODBC driver.
    Justin

  • FRM-92220: access to system clipboard is denied

    Hi,
    Within a customer's application Error FRM-92220 "access to system clipboard is denied" is returned when the customer switches between screens within the application.
    I have not been able to find a reference for this error nor am I experienced with Forms.
    Can anyone help and give a solution or point into the right direction to help the customer with this error?
    Thanks in advance.
    Peter

    As found in the Internal Support Portal:
    Ideally, the error FRM-92220 will be thrown due to the the reason that there is a security check introduced by the JRE in one of their updates/upgrades sometime around JRE 1.5 was released. If the System clipboard is accessed by another OS application, then JRE cannot access the clipboard hence resulting in the error. If no OS application (like word or anyother tool ) then you wont have this error. Avoiding this error is not in the hands of Forms, its a question of whether JRE can access the clipboard at that particular moment
    In earlier versions like 9.0.4 and 10.1.2, this new security measure by Sun JRE has resulted in Java exceptions and abrupt termination of the JVM in the client machines resulting in Forms disconnection. Hence Forms development introduced the new applet parameter to capture and re-route the messages to the java console
    allowAlertClipboard=true
    Setting it to false, will not show these errors and will sent to jre console.
    There is very little you can with respect to Forms coding. I would recommend you to set the following
    allowAlertClipboard=false
    at the moment when the error comes, the forms process will capture and send it to console. Later, if the System clipboard is released by other processed which were holding it, then the clipboard can be accessed again, there is nothing that you need to do specifically.

  • How do I install and configure the Java Access Bridge?

    I've just installed the Oracle 9i database on this Windows 2000
    Pro box with a view to learn what there is to learn about
    Oracle. I need to install the Java Access Bridge so that I can
    access the Oracle applications. I use a screen reader called
    JAWS from Freedom Scientific.
    Can anyone please tell me how to install the necessary Access
    Bridge components and how to configure things accordingly so
    that adaptive software will work correctly with the Oracle
    applications.
    Adrian

    You can do all the networking stuff you need by setting a "bridged" adapter in the VM setup, then configure a valid IP in your guest OS, probably using the same gateway and name servers similar to your host OS.
    If you you cannot use a bridged mode adapter because your host network does not support another network card, you can configure a NAT and a host-only adapter in the VM setup as following:
    When you configure the network device that corresponds to the NAT device on the on the guest side, set it up to obtain the IP address via DHCP. The NAT device is for outgoing connections to the internet only. VBox will not provide any routing from the outside network to interface behind a NAT device, only via it's own internal DHCP routing.
    The host-only adapter is only good for connection between the host and the VM guest. It is primarily designed to provide DHCP like the NAT interface, but does allow a manual configuration, by customizing the "vboxnet0" configuration in the Vbox Network preferences. By default, the IP address range 192.168.56.1 to 192.168.56.100 can be used for manual IP configurations.
    It was not mentioned in your requirements, but you need a bridged mode adapter if you want to connect to your guest VM from any other machine beside your host system, e.g. local LAN.

  • Seeking for VB code to run the report conect to ODBC system DSN

    I use the VBcode to run the CR report from VB application.
    Works great when the report connect to mdb through DAO engine..
    Set CrxReport = apps.OpenReport(App.Path & "/" & Reportfile & ".rpt")
    CrxReport.Database.Tables(1).ConnectionProperties.Item("Database Password") = "syspass"
    Now I make my report connect Access 2007 through System DSN in ODBC.
    Set CrxReport = apps.OpenReport(App.Path & "/" & Reportfile & ".rpt")  -- works.
    CrxReport.Database.Tables(1).ConnectionProperties.Item("Database Password") = "syspass"
    -- Get Crystal error-214726270.
      Any help?
    Many Thanks!
    Daphne

    Moved to Legacy SDK forum.
    Need more info. What version of CR and which report engine are you using?
    Thank you
    Don

  • Create ODBC system DSN Dynamically ?

    Hey Guru ,
    Does any one know how to create a system DSN for CSV and
    EXCEL dynamically using coldfusion or any other languauge VB ?, on
    net there are loads of examples for access and MSSQL server but
    none forCSV or EXCEL
    Thanks a lot in advance ..

    I just tried it again as a Startup Script in the GPO, it only is applied if I add the user to the local Admins Group.
    A startup script is applied to a computer at reboot.  It is not applied to an OU with users.  Apply the GPO to the computer container.
    Just use the GPO that defines DSNs.
    ¯\_(ツ)_/¯

Maybe you are looking for

  • Prob while creating Non - Cumulative KF with Inflow & Outflow

    hello all, I created 3 Key Figures, with DEPOSIT, WITHDRAWL, BALANCE... with Amount & 0CURRENCY data type... If i measure the DEPOSIT & BALANCE in 0CURRENCY then only i could be able to see the keyfig in Inflow(DEPOSIT) and Outflow(WITHDRAWL) of the

  • Adding New Field in table control

    Hi all, I am going to add one new field in existing table control ,which already contains nearly 20 fields, so my field should be21st field, here when I am going to add new field , I need to add the field from work are from the same program. So , I a

  • Transfer music from iPad to my new Mac book

    How do I transfer music from my iPad to my new Mac book? I keep getting a sign that my iPad library will be rased when I click on sync music

  • Problematic Adobe Flash Player in Chrome

    My Adobe Flash player keeps crashing in my Google Chrome browser, which is really annoying. When I try to fix this, it says that Chrome has the latest version automatically installed already. My Windows Messenger also requires a later version of Flas

  • Anyone have problems with AppleSpell.Services?

    Good day all. I had a huge drain on memory resources and found, through activity monitor, something called AppleSpell.services running and taking 35% of my memory. Plus logging out took far too long (compared to normal). I shut down the processes (th