Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no dafault driver specified

 
rakesh kadulkar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to connect to MS Access database using dynamic DSN but I am getting the error as
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

I am giving the source code:

 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need to use { instead of (

Try to change:


into:



(I found this at http://www.rgagnon.com/javadetails/java-0107.html)

good luck,
Herman
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic