Sampath, Krishna wrote:
> 
> Any one have tips/code on setting up a connection to a database from a
> servlet?
> We are trying to call a ODBC datasource from a servlet for read/write access
> on an NT4.0/Apache1.3.6/ApacheJserv 1.0b3/ environment.
> 
> Thanks
> krishna sampath
> 
> ----------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> READ THE FAQ!!!!     <http://java.apache.org/faq/>
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]
Hi, Krishna -

There is one important thing needed: the JDBC (Java DataBase
Connectivity) driver for the particular database engine. Some are free
for the download such as Informix and MySQL. Others such as Oracle will
cost money. The driver will allow your servlet to "talk" to the
database. As a reference I would recommend:

        "Database Progeamming with JDBC and Java"
                - George Reese
                O-Reilly Press ISBN 1-56592-270-0

I am using the JDBC from Informix and the MM JDBC for a MySQL engine. I
don't have any experience with the Microsoft products.

Regards,

Frank Goss
Loveland Manufacturing Center
Hewlett-Packard Company


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to