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 / Databases / November 2003

Tip: Looking for answers? Try searching our database.

Jdbc connect  to plain text

Thread view: 
Duke - 13 Nov 2003 12:09 GMT
Hi all,

I've read on Sun's java site that with JDBC 3.0 is actually possible
to use plain text file (such as CSV) as table and make my queries on
that.

"JDBC technology is an API that lets you access virtually any tabular
data source from the Java programming language. It provides cross-DBMS
connectivity to a wide range of SQL databases, and now, with the new
JDBC API, it also provides access to other tabular data sources, such
as spreadsheets or flat files."

How can I do this? I can't find any example for getting the
connection. I don't want to use third party drivers.... if not
absolutely necessary.

can you help me??

thanks

Duke
Thomas Kellerer - 13 Nov 2003 18:22 GMT
JDBC as such is just an interface definition. What you need is a JDBC
*driver* which is capable of handling text files. I recall seeing on on
sourceforge. HSQLB (hsqldb.sourceforge.net) tables can be mapped to
external text files as well

Additionally, if you are working on Windows, you can setup an ODBC data
source which connects to your text files. AFAIK the text file driver is
included with the windows installation.

Thomas

Thomas

Duke schrieb:
> Hi all,
>
[quoted text clipped - 17 lines]
>
> Duke


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



©2009 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.