• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

 
Greenhorn
Posts: 3
Eclipse IDE MySQL Database Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi this is my code , it is a simple program to print student details using JDBC. But when i run this i got an error in cmd is "C:\Java>javac first.java
C:\Java>java first
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"



Please assist me .. i am using jdk1.6

 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What sort of database are you trying to access?
My first cringe is at using ODBC. Oracle recommends that you use the correct JDBC driver for your database rather than trying to use ODBC.
If you google for that error message, you should find a whole lot of people encountering the same issue.

Have you defined the data source "MyData" in the ODBC configuration?
Is is a system or user DSN? I always had more luck using System DSN.

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JDBC-ODBC bridge driver has been removed in Java 8 - it was never meant as something that you should use for real programs.
reply
    Bookmark Topic Watch Topic
  • New Topic