thank you Jeanne for your advice. I have tried doing that too, executing 10 columns at a time, and that was taking too much time too. If there is no better soluction than prepared statement then for now I will stop looking for an alternative to ps. So now I am looking for a way to catch the SQL string the preparedStatement is generating. I thank Avi for suggesting p6spy. I am looking at this, and trying to use it. Hope I get better results. Thank you guys for your help.....
-Indu
(ps: Bear, while registering I was told that someone had already used my user name, and told that I need to change my name and user name, which I did. Now I tried to change user name and it got approved.
I apologise for messing up my own name.)