Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connection msConn = getDestinationConnection(mdbFilePath);
- try{
- String strSQL = "SELECT * INTO " + accessTableName + " FROM [Text;HDR=YES;DATABASE=" + csvDirPath + ";].[" + csvFileName + "]";
- PreparedStatement selectPrepSt = msConn.prepareStatement(strSQL );
- boolean result = selectPrepSt.execute();
- System.out.println( "result = " + result );
- } catch(Exception e) {
- System.out.println(e);
- } finally {
- msConn.close();
- }
Add Comment
Please, Sign In to add comment