This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I am using Statement and it's addBatch() and executeBatch(); Database is Ms Access. I am using addBatch() twice before executing it. The sql queries are: st.addBatch("Insert into table1 (ProjID,developer) values ('"+prjid+"','"+dev+"')"); st.addBatch("Insert into table2 (ProjID,dated) values ('"+prjid+"',#"+date+"#)"); where prjid and dev are string variables and date is sql date. The tables has a relationship table1 -one-----many- table2 between ProjIDs. Now the problem is that while the executing is giving no problem and the int  array returned has 1,1 values ie it is effecting both tables records but though the data is saved in the table1 and not in the table2....why? point: using : st.executeUpdate("("Insert into table1 (ProjID,developer) values ('"+prjid+"','"+dev+"')"); st.executeUpdate("("Insert into table1 (ProjID,dated) values ('"+prjid+"','"+date+"')"); I am getting results! Please help? Maki Jav
Thank you! Everything is working fine! I was actually not closing connection earlier so I was getting data stored in table1 only and not in table2. Now that I am closing the connecton after executeBatch(), I get the data saved in both of them. I want to know what other free and professional level databases are available? I have come across FireBird which is free and open source version of interbase6 (borland). It is homed at http://firebird.sourceforge.net I have not used it as yet. Any ideas? Anyone? Maki Jav [ January 13, 2004: Message edited by: Maki Jav ]