Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database cannot be connected

 
Samarth Mehta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My java knowledge is very basic
I wanted to know where to store the database so that i can access it from java code
I have the Db in MsAccess
I am using JdbcOdbcDriver
I need the url by which I can connect to the Db
Can you please help me out
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

You will have to create a Datasource via your Windows Control Panel.
There's an example at http://www.mundayweb.com/progs/jdbc-odbc-tut.php

It's a bit old, but you'll figure it out.

Herman
[ April 18, 2008: Message edited by: Herman Scheltinga ]
 
Manuel Leiria
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Herman Scheltinga:
hi,

You will have to create a Datasource via your Windows Control Panel.

[ April 18, 2008: Message edited by: Herman Scheltinga ]


You don't necessarily have to! Example:

 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic