Need Help in Acting Excel files As DataBase - TechRepublic
Question
September 26, 2007 at 12:27 AM
pavani

Need Help in Acting Excel files As DataBase

by pavani . Updated 18 years, 1 month ago

Hi All,

We wrote a logic which uses a Excel file as a database and reads data from it. We executed the logic successfully in my local system which is using windows xp as an operating system.but when i uploaded the code in the client’s server which is running on the unix platform.We got “Null Pointer Exception”.
Here is our code snippet:
Class.forName( “sun.jdbc.odbc.JdbcOdbcDriver” );
c = DriverManager.getConnection(“jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};DBQ=” + “Name of the file”);

Actually the problem is the ODBC-JDBC driver which we are using will support only for Windows Platform.In server it is in UNIX platform.JDBC-odbc bridge driver can’t support MS Excel on Unix.We need to run sql queries on Excel files in unix platform.

is there any way to solve this problem.please guide us to solve this problem.

Please give your valuable suggestions.

Thanking You,

Regards,
Java Team.

This discussion is locked

All Comments