Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Create CSV file from resultset in Java

Thread view: 
simon_s_li@hotmail.com - 28 Nov 2006 10:07 GMT
Hi,

I need to be able to read data from a table (ResultSet) and create a
CSV file.

Once the CSV file is created I want to save the CSV into a SQL Server
database.

Can anyone help me with this.

Any sample code would be great.

Regards
Simon
JK - 30 Nov 2006 03:52 GMT
Hi,

   Resultset cannot be saved directly as it is. It has to be read and
store in a Array or Collection. This Array has to be stored as CSV
file.

If requirement is data transfer from one database to another database,
ex. oracle to SQL Server,  it is better to go for Hibernate.

Shrik's

> Hi,
>
[quoted text clipped - 10 lines]
> Regards
> Simon
Martin Gregorie - 30 Nov 2006 21:17 GMT
> Hi,
>
[quoted text clipped - 4 lines]
> If requirement is data transfer from one database to another database,
> ex. oracle to SQL Server,  it is better to go for Hibernate.

Might be better yet to avoid programming and do the job with the
database unloader and loader programs, which generally write and read
CSV files.

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.