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 / January 2008

Tip: Looking for answers? Try searching our database.

Where is the driver and how to connect?

Thread view: 
fasisi - 14 Jan 2008 02:01 GMT
Hello,

I am new to JDBC. Can you help me on how can I know that I have the
driver I need to connect to some kind of database... say MS Access or
SQL Server or Firebird or Paradox?
And how to connect to the database?
Is the 'Java Application Server' needed to connect to a database?
What is Derby?

Thank you,

Fasisi
Arne Vajhøj - 14 Jan 2008 02:04 GMT
> I am new to JDBC. Can you help me on how can I know that I have the
> driver I need to connect to some kind of database... say MS Access or
> SQL Server or Firebird or Paradox?

For MS Access or Paradox I believe you will have to use the ODBC
driver for those and the JDBC-ODBC bridge that comes with Java.

For SQLServer you can either use the JDBC driver from MS or the
FreeTDS JDBC driver.

> And how to connect to the database?

See docs for the driver.

> Is the 'Java Application Server' needed to connect to a database?

No.

> What is Derby?

Another database.

http://db.apache.org/derby/

Arne
Lew - 14 Jan 2008 02:47 GMT
fasisi wrote:
>> I am new to JDBC. Can you help me on how can I know that I have the
>> driver I need to connect to some kind of database... say MS Access or
>> SQL Server or Firebird or Paradox?

> For MS Access or Paradox I believe you will have to use the ODBC
> driver for those and the JDBC-ODBC bridge that comes with Java.

Is there even an ODBC connector for Paradox?  It's not an SQL-based database
system.

> For SQLServer you can either use the JDBC driver from MS or the
> FreeTDS JDBC driver.

>> And how to connect to the database?

> See docs for the driver.

Individual drivers come from a variety of sources.  For example, Oracle, IBM
and PostgreSQL all provide JDBC drivers for their respective RDBMS products.

For massive amounts of information from Sun about JDBC and related tech, start
here:
<http://java.sun.com/javase/technologies/database/index.jsp>

Really, it is a very good idea for matters Java to begin with a search
java.sun.com.  It's simply amazing how much Sun and others have published on
line for free about all this.

IBM developerWorks is another excellent launching point for Java studies.
<http://www.ibm.com/developerworks/java>

Usenet is not efficient for gaining comprehensive knowledge of a subject.
It's best used to fill specific gaps in understanding and to expand one's
awareness of various issues.

Signature

Lew

Arne Vajhøj - 14 Jan 2008 03:27 GMT
> fasisi wrote:
>>> I am new to JDBC. Can you help me on how can I know that I have the
[quoted text clipped - 6 lines]
> Is there even an ODBC connector for Paradox?  It's not an SQL-based
> database system.

Yes. Part of MDAC.

Excel is not SQL based, but you can get an ODBC driver for that anyway.

Arne
Lew - 14 Jan 2008 04:27 GMT
Lew wrote:
>> Is there even an ODBC connector for Paradox?  It's not an SQL-based
>> database system.

> Yes. Part of MDAC.
>
> Excel is not SQL based, but you can get an ODBC driver for that anyway.

I see.  I guess I'm so used to using JDBC for full-scale queries involving
JOINs and GROUP BYs and the like that I just can't imagine how useful that
would be.

When I learned Paradox some years ago it was really difficult for me until I
figured out that it was much like an assembly language for sets, even to
having a sort-of accumulator for intermediate results.  Then it became easy.

I never did come to share the religious fervor shared by many Paradox
enthusiasts.  I much prefer SQL-based systems.

Anyhow I should have realized that there could be ODBC drivers for it, as for
Excel or even text files.

Signature

Lew

Martin Gregorie - 14 Jan 2008 12:26 GMT
> Is there even an ODBC connector for Paradox?  It's not an SQL-based
> database system.

Just because a data source isn't SQL-based or relational doesn't mean
there isn't an ODBC driver for it.

You can write one for any data structure that can be treated like a 2D
array provided you're willing to do the work to map SQL statements onto
it. Various people have done this, so you can find ODBC drivers for
Excel, cvs and text files as well as various indexed file structures
(dBase, anybody?) and non-relational databases such as IDMS.

There is at least one Paradox ODBC driver. DataDirect
<http://www.datadirect.com> supply one. They look like a good resource
if you need ODBC drivers for a variety of data sources. I have no
connection with them: just had 'em bookmarked for quite a while.

Signature

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

Roedy Green - 14 Jan 2008 15:16 GMT
On Sun, 13 Jan 2008 18:01:53 -0800 (PST), fasisi
<Frans.Indroyono@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>I am new to JDBC. Can you help me on how can I know that I have the
>driver I need to connect to some kind of database... say MS Access or
>SQL Server or Firebird or Paradox?

see http://mindprod.com/jgloss/jdbc.html

Your driver must be on the classpath.
Signature

Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com

Roedy Green - 28 Jan 2008 00:42 GMT
On Sun, 13 Jan 2008 18:01:53 -0800 (PST), fasisi
<Frans.Indroyono@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>I am new to JDBC. Can you help me on how can I know that I have the
>driver I need to connect to some kind of database... say MS Access or
>SQL Server or Firebird or Paradox?

see http://mindprod.com/jgloss/jdbc.html
Signature

Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com



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.