Solved

JDBC for Access97 and SQL Server

Posted on 1998-09-17
4
185 Views
Last Modified: 2012-05-04
Does anyone know how to connect a MsAccess97 or MsSQLServer database to a Java applet? Is it possible deploy this functionality without distributing files to the client?

(DevPlat: Winnt J++6.0b, DeployPlat: WinntServer(IIS))

Many thanks.
0
Comment
Question by:JohnO061798
  • 2
4 Comments
 

Expert Comment

by:pureDan
ID: 1224391
It's possible to access a database from an applet thru JDBC...my in my previous experience a only achieved a connection to a database from an application...not from an applet thru JDBC-ODBC driver.
how? in Control Panel / 32 bit ODBC/User DSN  do the following:
1. Add the driver U need
2. in the Datasource Name TextField type your database name (without the extension)
3. then Select the path to your database.
4. You 've got also some Advanced features like seting a password or smthng. for your database.

------------
Once U've done this U can access thru code your database.

Hope this helps U.

0
 

Author Comment

by:JohnO061798
ID: 1224392
This is asked in a client-server context ie. applet connects to *remote* MS database. I know it can be done with JDBC-ODBC bridge BUT I am interested in a PURE java solution where a JDBC driver does the work of connecting to and querying the DB. Is there such a driver around or does anyone know a work-around. (MS seem keen to promote their ADO technology which is NOT pure Java)
0
 
LVL 1

Accepted Solution

by:
baresse earned 200 total points
ID: 1224393
You can go here for JDBC availabe Driver :

  http://java.sun.com/products/jdbc/jdbc.drivers.html

you can found :  IDS Software
                 Intersolv
                 NetAway
                 etc...
for type 3 Driver  -> to use with 3-tiers (middleware) architecture.

WebLogic for a type 4 Driver for MsSQLServer.

I don't know if theses drivers are free...

I've developped exaclty what you want but with a ORACLE database
and so a free ORACLE Driver. A client-server context where applet connects to *remote* ORACLE database through a firewall by
using either RMI, either CORBA and for both JDBC. (I've made 2 versions)



0
 

Author Comment

by:JohnO061798
ID: 1224394
Thanks for that. The WebLogic driver does cost around $500 dollars though! I have since found www.synsoft.com whose JDBLite driver does the job with a small footprint although I'm not sure how scalable it is.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now