The Artima Developer Community
Sponsored Link

Java Answers Forum
Major Problem!!!

16 replies on 2 pages. Most recent reply: Oct 7, 2005 3:08 PM by Sharad Thakur

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 16 replies on 2 pages [ « | 1 2 ]
pranjal

Posts: 9
Nickname: dutta
Registered: Oct, 2005

Re: Major Problem!!! Posted: Oct 7, 2005 3:50 AM
Reply to this message Reply
Advertisement
thanks all,
I solved the problem with ur co-ordination.
if any one needs the source code he or she can get it from me.
Moreover ,the exceptions that i was getting was b'coz of the bugs in the jackcess1.0 library.So, i made changes in the library.

I was not using the latest version of Jackcess b'coz it donot supports JDK1.4.2.
my email-ID :<pranjal_dutta4u@yahoo.com>

with regards and thanks once again
Dutta

Sharad Thakur

Posts: 7
Nickname: javasir
Registered: Sep, 2005

Re: Major Problem!!! Posted: Oct 7, 2005 3:08 PM
Reply to this message Reply
Hi Pranjal,

I hope you might know about .csv files which are infact comma (,) or pipe (|) seperated files.

So the solution goes here just convert you .mdb data in .csv files , you can do that by exporting it to excel and then saving it as .csv or there might be many other ways.

Now you can , write code to access records from those .csv file coz they are also accessible in linux environment.

Hope fully if you are not that comfortable with java and if you are using postgres that comes along with linux distribution then theres a easy way out , PostgreSQL's "COPY" statement is an excellent way to load large amounts of data quickly into a database.

COPY will be run by the PostgreSQL you need to have permissions to read & write to the data file in order to copy from/to it, and needs to be able to find it.

Therefore you need to use an absolute pathname. You will also need to have insert/update or select permission on the table in order to COPY to or from it.

Assuming these requirements are met, you are ready to happily populate your database by doing:

example
run following at your prompt:
COPY employees TO '/tmp/employee_data.csv' USING DELIMITERS '|';


OR

COPY employees TO '/tmp/employee_data.csv' USING DELIMITERS ',';


I hope this may solve your problem without taking the trouble of writing java codes and all.

Best of Luck
Sharad Thakur

Flat View: This topic has 16 replies on 2 pages [ « | 1  2 ]
Topic: Help with updating graphical objects in my GUI. Previous Topic   Next Topic Topic: Problem with Jackcess 1.0

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use