Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i connect java servlet with ms sql 7

 
Rohit kumar singh
Greenhorn
Posts: 2
Java Java ME MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Refer to the database access tutorial http://download.oracle.com/javase/tutorial/jdbc/index.html
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic