Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie to Java: no Data found

Status
Not open for further replies.

eramgarden

Programmer
Aug 27, 2003
279
US
I inherited a code, i set it up on my laptop and when I try to run it, i get a SQL error:

java.sql.SQLException: No data found

I ran debug and it happens on this line:

Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
c = DriverManager.getConnection( "jdbc:eek:dbc:qa-list", "", "" );
stmnt = c.createStatement();


1.Google has it to check ODBC DSN's and I did that and it looks fine

2.The ODBC connection is Excel file

3. When I run the app, I chose a "txt" file to open, it comes down that code and gives the error...since this is an Excel ODBC...i can only open excel files???

Any help would be greatly appericaited...




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top