Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is jndi lookup?

937


How can you make the connection using jdbc?

1046


How to use JDBC API to call Stored Procedures?

1021


What is jdbc and explain jdbc architecture?

1021


Describe the steps needed to execute a sql query using jdbc.

988


Which database is used for java?

964


How many ways that we can view a result set?

995


Why should we close database connections in java?

1151


Explain what should be done when a SQL exception is raised?

977


What are the different types of interfaces in the api component?

987


How do I find whether a parameter exists in the request object?

916


What is JDBC PreparedStatement?

967


Explain the importance of drivermanager.

1189


Is jdbc faster than hibernate?

999


Give a way to check that all result sets have bin accessed and update counts are generated by execute method.

965