• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SQLServer thindriver for Tomcat5.0

 
Nilesh Chokhadia
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In tomcat5.0 server.xml file we have thindriver for oracle,My-sql but we dont have for SQLServer from where I got thin driver and how to configure that driver in server.xml as well as in source code for Database connectivity with same thin sqlserver driver
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get a MS SQL Server thin Driver here, or you can use the Sun JDBC Driver search to find other Drivers.
You don't need to make any changes to the server.xml, you just need to change the class loaded in your Class.forName() line to the MS Driver, change the dtabaase URL to refer to your database, and place the JDBC JARs in the WEB-INF/lib directory for the web application.
Any JDBC sample code will show you how to connect, you just have to change the two parts listed above.
Dave
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI - MS SQL JDBC Driver only supports the JDBC 2.0 spec. So be careful when you code.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe there are other Type-4 SQL Server Drivers (two that I've heard of, none that I've used), check the Driver search page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic