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

configuring ODBC

 
henry akoma
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
please can anyone assist me with the configuration of ODBC.
i wrote a program and the console is giving me an error which reads "Data source not found and no default driver".

i used

but i am not sure what my url should be:-
please can someone help me
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can configure them on the (Windows) control panel, "Data Sources (ODBC)", it may be in the administrative tools.

You give your datasource a name like "mydb" , then refer to to it as "jdbc:odbc:mydb"
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*Sigh*, I should have called it "jdbc:odbc:abcd", try saying that three times fast
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic