This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes how to connect  tomcat server application to sql server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to connect  tomcat server application to sql server" Watch "how to connect  tomcat server application to sql server" New topic
Author

how to connect tomcat server application to sql server

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
i have a sql server
i m having one application in which i m giving parameter from html form
to servlet controller using tomcat server.
if i want to store parameter in the data base from tomcat application.
than how can i make a connection with the sql database

my code

my servlet code


in servlet code what changes should i have to do to connect
it with the data base .
if anyone can give me good link it will be also help for me
[ August 17, 2005: Message edited by: sandeep mittal ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Start here.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

Then here.
samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
thanks Bibeault
for giving me direction
 
wood burning stoves
 
subject: how to connect tomcat server application to sql server