Freetds with MSSQL
Chirayu Vaidya
chirayuvaidya at yahoo.com
Sat Nov 17 05:47:33 EST 2001
I get a java.lang.ClassNotFoundException: com.internetcds.jdbc.tds.Driver
when i try to use freetds in my site. I am using jsp's on linux with MSSQL
on NT server. I am using the following jsp code:
<%@ page language="java" import="java.sql.*,java.util.*"%>
<%
Connection con=null;
Statement st=null;
ResultSet rs=null;
String login="abc";
String pswd="def";
String url="jdbc:freetds:sqlserver://serverIP/databasename;tds=7.0";
try
{
Class.forName("com.internetcds.jdbc.tds.Driver");
out.println("Class.forName");
}
catch(Exception exp)
{
out.println("This is an exception : "+exp);
}
%>
I haven't even used the Statement and other sql commands as yet. Even this
code is generating the above said exception. Please advice and treat this
as most urgent.
More information about the FreeTDS
mailing list