Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
JDBC and Relational Databases
this is my first jdbc program
srikanth sri
Greenhorn
Posts: 20
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
import java.sql.*; public class OdbcAccessConnection { public static void main(String [] args) { Connection con = null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ; // Connect with a url string con = DriverManager.getConnection("jdbc:odbc:deshmukh"); System.out.println("Connection ok."); con.close(); } catch (Exception e) { System.err.println("Exception: "+e.getMessage()); } } }
but i get an error like
Exception: no data found
Misha Ver
Ranch Hand
Posts: 470
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
A few folks already tried to help you with the same issue
https://coderanch.com/t/483995/JDBC/java/error-message
Perhaps you could follow provided suggestions.
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JdbcOdbc bridge direct access method
Query about Connection interface
Network adapter couldn't establish connection with the database
Connecting to a remote mysql database
Importing java files in another java program
More...