• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing File(Excel) in ResultSet

 
Nitin Jawarkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends,

I want to write file i.e. FileOutputStram object like
wb.write(fileout) in resultset so that while loop should be able to write file row by row, wb is the WorkBook for excel and write(fileout) is write method for writting excel file, actually i have mentioned already my code in "invalid cursor error topic", you can see that code and please give me solution for this. At present condition in code i got result but it take lots of time to create excel file.

Thanx.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35276
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitin,
Please post a link to this other posts so people reading this don't have to search for it.
 
Nitin Jawarkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

You can find my code on this link.

http://www.coderanch.com/t/301769/JDBC/java/Invalid-Cursor-State-Error

Thanx.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35276
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nitin,
You need to add some logging statements to see which part of the code is taking up all the time. Is it the query? updates? writing to excel?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic