File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC:ODBC without ODBC data source?

 
Jochen van Waasen
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jochen van Waasen
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jochen
[ April 26, 2002: Message edited by: Jochen van Waasen ]
 
Jamie Robertson
Ranch Hand
Posts: 1879
MySQL Database Suse
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic