java - The Microsoft Jet database engine could not find the object 'G:\DATA\Sheet1$.XLS' -


i have got error in executing below code, says microsoft jet database engine not find object 'g:\data\sheet1$.xls'. make sure object exists , spell name , path name correctly. xls sheet named correctly, dono mistake, here code:

public static void main(string[] args) {  try{     class.forname("sun.jdbc.odbc.jdbcodbcdriver");     string url = "jdbc:odbc:accountmaster";     connection conn1 =drivermanager.getconnection(url,"","");     statement st = conn1.createstatement();     string query = "select * [sheet1$]";     resultset rs = st.executequery(query);      while (rs.next())     {         string s = rs.getstring("accountid");         string s1 = rs.getstring("projectid");         string s2 = rs.getstring("positionid");         insert_am(s,s1,s2);         getamdetails();         conn1.close();     } 


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -