this is code i wrote ..to connect to database and also getting filename,filedate and filesize from one folder but if i am trying to insert same records again then i am getting the error as
Statements that produce resultsets are not allowed in batch comments...
And you should move the SimpleDateFormat object outside of the for loop because otherwise, you're creating it over and over again. Ditto for the setAutoCommit(false) line.
SCJP 6 || SCWCD 5
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.