If you mean an applet running in a browser, that may not be possible. If it is, many security issues exist. The more modern common approach would be to have the applet interface with a web server application. That server application would then have access to the database.
If you just want to know how to access SQL database from Java, see the JDBC tutorials at java.sun.com
I believe (i do it through access how different can it be) you have to set up and ODBC link to the SQL database.
Some sample code below
Now please bear in mind I am a complete novice and teaching myself. But fo Access this works. I have tested it against SQL and it works too when data migration done.
I am sure you will get the jist. I sort of jigglrd it from sun web site on JDBC pretty good stuff. Tells you how to retrieve and place data. Again I am not a SQL expert and am using simple SQL statements..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.