jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes JDBC:ODBC without ODBC data source? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC:ODBC without ODBC data source?" Watch "JDBC:ODBC without ODBC data source?" New topic
Author

JDBC:ODBC without ODBC data source?

Jochen van Waasen
Ranch Hand

Joined: Jan 19, 2002
Posts: 33
Hi!
Is it possible to access a database with jdbcodbc bridge without generating an ODBC data source?
I have learned in the MS world it is possible to do something like this:
"Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\somepath\dbname.mdb;Uid=Admin;Pwd=pass;"
The above allows to access an Access DB without configuring an ODBC data source.
Can this be done in JAVA? How can this be done?
Kind regards
Jochen
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I believe it can. I have seen something like that posted to this forum You may want to use the search button to search the forum.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Jochen van Waasen
Ranch Hand

Joined: Jan 19, 2002
Posts: 33

Jochen
[ April 26, 2002: Message edited by: Jochen van Waasen ]
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879

I'm only reposting because spacing matters, and after editing out those graemlins, I believe their will be spacing errors...plus I have this code piece ready for this post! REMEMBER, cut and paste with exact spacing the code and only change the name of your database and the location (without messing the spaces up!)

Jamie
[now with disabled smilies...rrrr!]
 
 
subject: JDBC:ODBC without ODBC data source?
 
Similar Threads
ODBC and Microsoft access
Please help me need urgent help on JPA connection
Type 4 JDBC Driver for MS_Access
type four driver(thin driver) for ms-access
Basic Doubt