Connect Applet with SQL Server

I’m tried to implement a simple project (Applet) which will manage the online registration process with Symantec Visual Café 3.0.  The process will receive the users name, address and phone number and pass the information to MS SQL Server 7.0.  Besides that, the usersalso can view , searching and modify the database.  I’m hope that someone can mail me the source code something like this kind of project thru  Thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Hi HungAun,

Is it (i.e Ms0SQL is odbc driver ??).
If it is ODBC driver, you can't connect to database from applets without signing.

There are four types of drivers and applet will access type3 and type 4 databasdrivers. and Jdbc-Odbc bridge will come under type1 category.

There are four types of driver that Java can use to connect to a database directly:

1.The JDBC-ODBC bridge provides JDBC access via most ODBC drivers.

2.A native-API partly-Java driver converts JDBC calls into calls on the client
  API for Oracle, Sybase, Informix, DB2, or other databases.

3.A net-protocol pure-Java driver translates JDBC calls into a database-independent
   net protocol which is then translated to a proprietary database vendor network protocol
  by a server.

4.A native-protocol pure-Java driver converts JDBC calls into a proprietary database vendor
 network protocol.

A Type 3 driver can connect directly from the client to the Server and a two-tier
 type 4 driver could also do this if it connects directly across the network to the database
 server because neither of these types of driver have any dependence on software installed
 on the client.

Other types of driver require the applet to be signed in order to access local propritary
 code to get to the database.

None of these specifically require RMI, but you will need to check what support
 fetures your server has for JDBC connections.

There is lots of info here: 

and amongst others, some overviews here: 

  Type 3 and type 4 expensive drivers.

Two solutions for you.

1. Uisng type 3 and type 4 drivers.

2. Writing database login in java servlets and calling servlets from applet through URLConnection class.

For more about database drivers:-

Best answer: Vladi21

Java Database Connectivity is a standard SQL database access interface, providing uniform access to a wide range of relational databases. It also provides a common base on which higher level tools and interfaces can be built. This comes with an "ODBC Bridge" (except on Mac 68K). The Bridge is a library which implements JDBC in terms of the ODBC standard C API. 

Silicaon Valley Java SIG JDBC Talk Page 

Java how-to DB section 

articles from Oracle: 

JDBC 2.0 New Features 

MS bridge 


Books online 
Java Database Programming with JDBC 
Java 1.2 Unleashed : Connecting to Databases with the java.sql Package 

and some useful DB stuff:

WebLogic JDBC (30 day trial) 

Multilingual Databases and Global Internet Integration 

Best of luck
HuangAunAuthor Commented:
Hi! Ravindra76.
Thanks a lot for ur help.
I'm using Microsoft SQL Serevr 7.0 with Symantec Visual Cafe Professional Edition. Can U guide me on which database driver I need to install for JDBC or ODBC and where to download it?  If can, mind send me the sample source code on how to connect the applet with the SQL database.  The transaction onli required name and identity card number.    Bye. Thanks.
Huang Aun
Dear friend,

You have to use a type-3 JDBC Driver
for applet to work from anywhere.
So you can use IDSDriver to connect any Database which is a type-3 driver purely implemented in Java. you can download the evaluation copy from and follow the instructions for installation. Please copy the .jar or .zip file which you will get to c:\jdkinstallation\lib and add this to the classpath. And if you are going to use it in a comercial environment then you should copy the
..jar file into the server.Try.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.