Re: Java and JDBC



Sharp wrote:
Hi

I'm trying to convert a file in FASTA format to a text file in TABLE
(delimited by tab) format for MS Access.

EXAMPLE:

from FASTA format:


12345 a description

ATATATATATATATATATAT ATATATATTATATATATATT

to TABLE format:

12345    ATATATATATATATATATATATATATATTATATATATATT


PROBLEM:

Sometimes the sequence of A's and T's is so long that even in notepad, it
will wordwrap, despite having wordwrap set off. WordPad does a better job
than notepad, and will accept a little more characters per line, but still
in some cases the sequence is too long that it reaches the line maximum and
begins to word wrap. The problem of wrapping is that it becomes difficult to
import the text file into MS Access reliably.


QUESTIONS:

Is there another format I could use that will allow extremely long lines?

The format has nothing to do with it, it is the editors that you are using.

I plan to import the sequence as a memo field, which I heard can take many
characters.

I don't know what a memo field is.

I guess another solution is to use JDBC to connect directly to the database
and import it directly to a table, thereby avoiding the need to save it as a
textfile (doesn't work anyway) before I import.

If this is a regular task, I would take this "FASTA" data source and parse it, then write rows to the relevant database table (using JDBC).


If it is a one-off task then I would use Perl to chop the input into a file that the database can read. If access has a problem with the length of the fields than I would suggest using a more useful database (MySQL perhaps).

John.


Any advice appreciated.

Cheers
Sharp


.



Relevant Pages

  • Re: Protel 2004 answer to Brad Velander.
    ... Sorry, you misunderstand me, I mean to say that jump from 99SE to 2004 XP ... you don't have the same format with one database will all the documents. ... Well you said that you can export file format more recent than AUTOCAD 14 ... key/mouse click you press because I don't know how to do that with Protel ...
    (sci.electronics.cad)
  • Re: Combo box not finding record... sometimes
    ... Try the Format option last. ... Private Sub cboLnNum_AfterUpdate ... when I change the data type from Double to Long Integer the database ...
    (microsoft.public.access.formscoding)
  • Re: Error Message: Cant find Installable ISAM
    ... The database is residing on my machine, ... Error Message = "Couldn't find Installable ISAM" ... Connect property set = Access ... Access 2002/2003 format and tried this as a possibility, ...
    (microsoft.public.vb.database)
  • Re: What program is best for large inventory?
    ... put the information in the format that I want. ... down into several sub groups and some even further. ... The learning curve for general database concepts is moderate. ...
    (microsoft.public.office.misc)
  • Re: Incredibly Slow Form Load - now
    ... The A2000 format is not the problem. ... It could be several things, such as Name AutoCorrect, Subdatasheets, linked ... tables where the path is more than 128 characters, ... >I build a business critical contact database in Access 2000. ...
    (microsoft.public.access.forms)