give me a java code snippet to connect Microsoft excel
through.... I am trying alot... plz help me.
Answer Posted / sushant
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String myDB = "jdbc:odbc:Driver={Microsoft Excel Driver
(*.xls)};DBQ=c:/java/scratch/jdbc_test.xls;"
+ "DriverID=22;READONLY=false";
Connection conn = DriverManager.getConnection(myDB, "", "");
| Is This Answer Correct ? | 19 Yes | 6 No |
Post New Answer View All Answers
Write a program JDBCcode forfetching student database with SQL.
What is jdbc type?
Is it possible to connect to multiple databases? Using single statement can we update or extract data from two or three or many databases?
How can I use the JDBC API to access a desktop database like Microsoft Access over the network?
What is the JDBC syntax for using a literal or variable in a standard Statement?
What is the use of jdbc?
What are the standard isolation levels defined by JDBC?
What are database warnings in jdbc and how can we handle database warnings in jdbc?
What are different parts of a url?
How can we execute stored procedures using callablestatement?
What is the role of class.forname while loading drivers?
What are the different types of locking in JDBC?
What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.
What is com mysql jdbc driver?
If you are truncated using JDBC, how can you that how much data is truncated?