• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

connecting to database

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i'm sort of new to jdbc programming.. i was just trying to test how to connect to a db. I have created a db in access. The url i specify is jdbc dbc:MyDatabasename and i'm using the sun.jdbc.odbc.JdbcOdbcBridge driver. When i run the program it says that failed to load the driver and could not find the database source..
now i'm thinking the jdbc driver is alredy with the sun's jdk so do i have to still add something to my class path, thats what i think the problem can be..
secondly i'm planning to use oracle 9i for later tests.. so what is the oracle driver that i can use to connect to the jdbc.. can anybody tell me what the name of the driver is and if i need to download it and if yes which site can i use to do that...
Thanks..
:roll:
 
Ranch Hand
Posts: 1879
MySQL Database Suse
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it sounds like you didn't register your database as an ODBC datasource in the control panel. When using the jdbc dbc bridge, this is a necessary step in locating the database.
When you move to Oracle ( hopefully sooner than later ), you'll probably use one of these drivers
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic