Hi Guys, congrats for your great job, UcanAccess have helped us a lot!!!
So, We've faced with this situation: When we were using ODBC we get 300 registers and When we were using UcanaccessDriver we get 295 registers in the same archive .mdb that is not corrupted (we've opened this archive by MS Access without error or warning)... so we thought a bit more and we tried using the "repair and fix" from the MS Access and for our surprise we've got the 300 registers with UcanaccessDriver after using "repair and fix" of the .mdb by MS Access. This is a known behaviour?
publicConnectiongetConnUCANACCESS()throwsUcanaccessSQLException{Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");Stringurl="C:\\bd-000-00.mdb;";Stringusu="Admin";Stringpass="sh000";StringurlU=UcanaccessDriver.URL_PREFIX+url+";newDatabaseVersion=V2003";returnDriverManager.getConnection(urlU,usu,pass);}publicConnectiongetConnODBC()throwsClassNotFoundException,SQLException{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");Stringurl="jdbc:odbc:Driver={MicrosoftAccessDriver(*.mdb)};DBQ=C:\\bd-000-00.mdb;Uid=Admin;Pwd=sh000;"; Properties props = new Properties(); props.put("charSet", "ISO-8859-1");returnDriverManager.getConnection(url,props);}publicstaticvoidmain(String[]args)throwsUcanaccessSQLException,SQLException,ClassNotFoundException{Connectioncnn=null;PreparedStatementpst=null;ResultSetrs=null;UcanAccessDAOucan=newUcanAccessDAO();cnn=ucan.getConnUCANACCESS();pst=getSql(cnn);rs=pst.executeQuery();intcount=ucan.getQtd(rs);//theqtdfromUcanAccessSystem.out.println(count);//finishhim!pst.clearParameters();rs.clearWarnings();cnn.close();//NOWWITHODBC....cnn=ucan.getConnODBC();pst=getSql(cnn);rs=pst.executeQuery();intcount2=ucan.getQtd(rs);//theqtdfromODBCSystem.out.println(count2);//finishhim!pst.clearParameters();rs.clearWarnings();cnn.close();}
And to things to be more hard... this job must run on Windows XP 32 bits. (ohh Lord!)
thanks for your time guys! Regards.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi MQG-Brazil,
thank you for your interest in UCanAccess!
Unfortunatly it isn't a known behaviour.
In order to reproduce it, it would be very helpful to have the original mdb (or a mdb with a minimal subset of the tables). Is it possible?
On the way, are you using the 2.0.3?
Cheers Marco
Last edit: Marco Amadei 2014-03-24
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Guys, congrats for your great job, UcanAccess have helped us a lot!!!
So, We've faced with this situation: When we were using ODBC we get 300 registers and When we were using UcanaccessDriver we get 295 registers in the same archive .mdb that is not corrupted (we've opened this archive by MS Access without error or warning)... so we thought a bit more and we tried using the "repair and fix" from the MS Access and for our surprise we've got the 300 registers with UcanaccessDriver after using "repair and fix" of the .mdb by MS Access. This is a known behaviour?
And to things to be more hard... this job must run on Windows XP 32 bits. (ohh Lord!)
thanks for your time guys! Regards.
Hi MQG-Brazil,
thank you for your interest in UCanAccess!
Unfortunatly it isn't a known behaviour.
In order to reproduce it, it would be very helpful to have the original mdb (or a mdb with a minimal subset of the tables). Is it possible?
On the way, are you using the 2.0.3?
Cheers Marco
Last edit: Marco Amadei 2014-03-24
I also have a similar problem using both JT400 and ucanaccess, see the link in stackoverflow:
http://stackoverflow.com/questions/22693653/conflict-jt400-and-ucanaccess
Last edit: Andrea Taroni 2014-03-27
I answered on stackoverflow.
Cheers Marco