Discussion Locked

Connection to SQL server

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to connect to MS SQL Server 7.0 from the java applet. I need applet to be able to read and write to the database. Could anyone help me by puting a few lines (how to setup connection, work with it, read and write data)?

Thanks a lot

3 replies

by tink

Rather than copying code and trying to explain all the details, I will point you to the Java Tutorial that goes over this in detail. http://java.sun.com/docs/books/tutorial/jdbc/index.html

Start with JDBC Basics, it should answer all your questions.

Also there is an example in the JDK in \jdk1.3.0_02\demo\jfc\DBDemos\InsertCoffees\SQLSrvr

Please repost if you need more assistance.

This discussion is closed to new replies.