import java.io.*;
import java.util.*;
import java.sql.*;
class empListCondition {
@SuppressWarnings("deprecation")
public static void main(String[] args)throws Exception
{
DataInputStream dis=new DataInputStream(System.in);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbcdbc:jeevandb","SYSTEM","g1");
Statement st=con.createStatement();
//------condition 1---------
System.out.println("enter the toon letter");
char let=(char)dis.read();
/*System.out.println("enter the salary");
int sal=Integer.parseInt(dis.readLine());*/
ResultSet rs=st.executeQuery("select * from toonlist where toon[0]="+let);
System.out.println("toons are"+rs);
rs.close();
st.close();
con.close();
}
}
##################################
following are the runtime errors i am getting..please help me
####################################
Exception in thread "main" java.sql.SQLException: [Microsoft][ODBC SQL Server Dr
iver][DBNETLIB]SQL Server does not exist or access denied.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknow n Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at empListCondition.main(empListCondition.java:10)