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","","");

Similar Messages

  • How can i get access code to create ABAP Program ?

    hi guys ,
    How can i get access code for creating ABAP Program in my System.
    I am using SAP IDES 4.6 Version
    Please Help me out .
    Regards
    Raghu

    Hi Raghu,
    - license your system (http://service.sap.com/licensekey)
    - create a developer key (http://service.sap.com/sscr)
    - create a key for your ABAP program (httP://service.sap.com/sscr)
    Markus

  • Is there a time limit for how long a free form can be used/accessed?

    Is there a time limit for how long a free form that is created can be used/accessed, or is it soely dependent upon when the 50 respondent max has been reached?  I am creating a form now, that will likely be distributed in early January, and I want it to be accessible through the end of June, 2013.  (I am simply using the option to create a single form for free- not the 30-day trial). 

    There is no time limit. The limit is the 50 responses.

  • Can I use one account for both my labtop and my ho...

    can I use one account for both my labtop and my home computer?
    Solved!
    Go to Solution.

    Softthunder wrote:
    can I use one account for both my labtop and my home computer?
    Hello,
    Yes you can. You can access your account using any Skype enabled computer/device in any country worldwide.
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • How can i use diffrent database for same file in same project?

    I want to use two database. First normal environment, second for budget. Second copy from first environment. For example 1. database name = "MRP" , 2. database name = "MRPBUDGET".When program is start, users can select database. My question how can i use which selected database name in program.
    Thanks a lot for your help,

    Hi giri,
    I test it. When i change
    cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum");
    cocukRowSet.setDataSourceName("java:comp/env/jdbc/mysql_dogum1");
    in SessionBean1.java
    i run it. But this page of project is open explorer it didn't change sun-web.xml and web.xml in projetct directory(line
    <resource-ref>
    <res-ref-name>jdbc/mysql_dogum</res-ref-name>
    <jndi-name>jdbc/mysql_dogum</jndi-name>
    </resource-ref>
    When i close this page of project from explorer , i clean and build project and then find in project "dogum1", i saw true value in sun-web.xml and web.xml. Project is running true.
    How can i change xml file when project running. Can i use drop down list for database name(which change run time)
    Thanks,

  • TS3988 It seams that i have another Apple ID, how can i use only one for everything?

    It seams that i have another Apple ID, how can i use only one for everything?

    http://support.apple.com/kb/HT5622?viewlocale=en_US
    -The specific point:
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.
    If you are wondering how using multiple Apple IDs relate to iCloud, see Apple IDs and iCloud.

  • Can you use a 3600 for an Ethernet bridge??

    Can you use a Cisco 3600 to do a P2P bridge? Using the MAP's ethernet port  to connect to a remote LAN?  On that remote LAN can you have  lightweight APs that connect to a controller on the RAP side?

    Can you use a 3600 for an Ethernet bridge??
    http://www.cisco.com/en/US/docs/wireless/controller/7.0MR1/configuration/guide/cg_mesh.pdf
    Check - Converting Indoor Access Points to Mesh Access Points
    Ethernet bridging has to be enabled for the following two scenarios:
    1. When you want to use the mesh nodes as bridges.
    2. When you want to connect Ethernet devices such as a video camera on the MAP using its Ethernet port.
    Wireless Backhaul:
    In a Cisco wireless backhaul network, traffic can be bridged between MAPs and RAPs. This traffic can
    be from wired devices that are being bridged by the wireless mesh or CAPWAP traffic from the mesh
    access points.
    Guidelines For Using Voice on the Mesh Network
    • Voice is supported only on indoor mesh networks in release 5.2, 6.0, 7.0, and 7.0.116.0. For
    outdoors, voice is supported on a best-effort basis on a mesh infrastructure.
    other factors to note:-
    #you would be running on backhaul using A radio which is prone to DFS.
    #CAPWAP may not tolerent enough with AWPP convergence on MAP roaming.
    #CAPWAP is more latency sensitive than voice.

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • Can I use touch ID for App Store without using a passcode?

    It seems that the ony way I can use the touch ID for App Store and iTunes is if I have a passcode to get into my phone. I don't want a passcode, it get in and out of my phone too often to have to unlock it all the time and I hate manually typing in my password for App I buy. Why can't it do both, isn't the touch ID just as secure for purchases even if you don't have to unlock the phone to get to it??

    From the article:
    You can set up Touch ID in iOS Setup Assistant or by tapping Settings > Touch ID & Passcode. To set up Touch ID, you must first set a passcode. Touch ID is designed to minimize the input of your passcode, but you need a passcode for additional security validation, such as enrolling new fingerprints.
    So yes, that's how it's designed. You must have a passcode, though as long as you understand the caveats:
    In addition, you will need to enter your passcode to unlock your iPhone in these conditions:
    After restarting your iPhone 5s
    When more than 48 hours have elapsed from the last time you unlocked your iPhone 5s
    To enter the Touch ID & Passcode setting
    and
    You can't use Touch ID for purchases if Require Password in Settings > General > Restrictions is set to Immediately.
    you should be able to use Touch ID without needing your passcode. If none of those circumstances is true and you're still being asked for your passcode to make a purchase from the iTunes Store, it would seem that something is amiss with your iPhone.
    Regards,

  • HT3354 how can i use one table for reference to another

    how can i use a table for a referance to another eg when i type a word in a cell, i will like it to match the word with another table then return the information in the cell i am using

    you can use vlookup() (or any of the lookup family of functions) to locate an item based on a key value:
    Here is an example of something you can do with two tables:
    The table on the right is title "Data" and stores a list of names with age and favorite color.
    The table on the left uses the value in the first column to lookup up information in the table Data
    in the table on the left:
    B2=IFERROR(A2&" is " & VLOOKUP(A2, Data :: A:D, 2, 0)&" years old and likes the color "& VLOOKUP(A2, Data :: A:D, 3, 0), "NOT FOUND")
    I know this look complicated.  so I'll break it up into smalled pieces:
    first the "&" is called the concatenate operator and joins two strings.  like this:
    a string is a set of characters between double quotes.
    so "string 1" & "string 2" becomes "string 1string2"  or "Sam " & "Jones" becomes "Sam Jones"
    you can use cell references instead of strings directly in which case the concatenation is performed on the contents of the cells.
    so if cell A1 contains "Hi " and the cell A2 contains "There"  then A1 & A2 will result in "Hi There"
    so you could add the formula
    A3=A1 & A2
    this is short hand for select cell A3 then type everything including the A3 so that A3 contains "=A1 & A2" (omit the double quote)
    OK.  So the formula I provided concatenates several items together:
    it concatenates A2, then the string " is " then a formula, then the string " years old and likes the color " then a formula
    the two formulas (highlighted in blue) perform a lookup of the value in cell A2 in columns A thru D of the table named "Data".  If if finds the value in cell A2 in the first column of the lookup range in the table Data (column A) then it returns the value from the same row but in the second or third column.
    all that is in a function calld iserror() to trap the condition where the calue you enter in A2 does not exist in the table Data:
    You will find the Numbers users guide and function reference helpful.  You can download then from Apple here:
    http://support.apple.com/manuals/#productivitysoftware

  • Can I use same account for android and PC and how ...

    Can I use same account for android tablet and PC and how do I link both?

    You can use the same Apple ID for both phones, you would then be able to use the purchased Apps/Content on both phones without having to pay again.

  • I have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    i have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    You can use the same Apple ID for both phones, you would then be able to use the purchased Apps/Content on both phones without having to pay again.

  • Can I use a domain for one site and mobile me for a different site?

    Can I use a domain for one site and mobile me for a different site?
    I have two sites, I would like to have up and I would like to do one through a domain and one through mobileme is this possible?

    Yes you can. You can use the CNAME method of forwarding for the first site (the top site in iWeb) and use the MMe URL for your account for the other site: http://web.me.com/YourAccount_Name/SiteName/
    OT

  • Have iPad, iPod Touch and iPhone 4s. Can I use one charger for all

    I have and iPad, iPhone 4S and iPod 4. Can I use one charger for all 3 and if so, which one. TZ all

    You can use the iPad charger for all.

  • In Bte can i use same Product for 2 different process

    in Bte can i use same Product for 2 different process

    hi
    as per i know yes but since there r two type of interface behaviour is defferent .
    For
    Publish & Subscribe interfaces 
    if any event occur in this type both the process can work simultaneously and they will not intervene each other
    whereas in
    Process interfaces
    at an time any one process can be active.
    Reward if usefull
    Cheers
    Snehi

Maybe you are looking for

  • Error: Sizing conflicts exists on the screen in LBWE -  BI 7.0

    Hi, While using the transaction the LO Cockpit lbwe i am getting an error "Sizing conflicts exists on the screen;for more information see SAP Note 570861".But unfortunately it mentions about SAP 6.20 gui.I am using the SAP 7.10 gui. Please let me kno

  • Disk utility burning issue

    I'm trying to burn some DVD/DVD DL from disk images..... I never got a success with *disk utility*.. after burning one with *disk utility*, checking disk always fails: an error on a sector (never the same) in the other side, burning same image with t

  • Page zoom not holding between pages in FF4

    Back in good old FF 3 page zoom would hold between pages or on refresh, I am finding with FF4 every time I reload a page or click a link to a different part of the same website I need to re-size the page, as I use FF for its zoom function this is sta

  • Unable to access AIA Console

    I have installed AIA 2.3 on OracleSOA 10.1.3.4 and everything was successful and no errors in logs..however I am not able to open AIA console..it says '404 not found'..this is the URL I used to open AIA page http://hostname/AIA/faces/home.jspx. Just

  • 'failed to initialise' and 'error 130200'

    Any advice gratefully received - able to install 9.3.4. But current update shows eror messages as above. Have uninstalled and sought to reinstall, same issues. OS is XP. Richard.