It's not a secret anymore!*
The moose likes JDBC and the fly likes How can i connect java servlet with ms sql 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How can i connect java servlet with ms sql 7" Watch "How can i connect java servlet with ms sql 7" New topic
Author

How can i connect java servlet with ms sql 7

Rohit kumar singh
Greenhorn

Joined: Jul 08, 2011
Posts: 2

hello friends...i am rohit.....i have started servlet.....i am making login form and as well as i am connecting my lo-gin form with MS SQL 7....when ever i m compiling the code i am getting errors. so please help me and tel me what will i have to write for loading or making the connection b/w servlet and MS SQL 7....i m waiting for your reply.....please reply me

thanks and regards
Rohit Singh
Murthy Tanniru
Greenhorn

Joined: Jun 03, 2008
Posts: 14
Refer to the database access tutorial http://download.oracle.com/javase/tutorial/jdbc/index.html
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60781
    
  65

You should not be doing this from a servlet. You should have all of this in separate Model classes that have nothing to do with the UI that can be called from the servlet.

I've moved this to the JDBC forum as it should not have anything to do with servlets.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can i connect java servlet with ms sql 7
 
Similar Threads
basic SQL connection steps
sql Ecxeption in Entity Bean Help!!!
Servlet and JDBC error
help with ms sql server 2005
Urgent : JDBC Driver for MS SQL Server 7