I had a program made in Java language and i want to convert it into j#(Use it in J# environment),this program contains database connectivity using java style.
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:inventory","","");
s=conn.createStatement();
}catch(Exception e) {System.out.println(e.toString());}
when i compile the progra produces errors , how can i map the connection strings to work ("sun.jdbc.odbc.JdbcOdbcDriver") and ("jdbc:odbc:inventory","","")

Data Base Mapping
rjaszek
Hi,
I copied pasted your code and compiled it. It didn't give any compilation errors to me. I believe either you have missed out to write following import stmts...
import java.sql.*;
import com.ms.jdbc.odbc.JdbcOdbcDriver;
or following variable declarestions are not there...
java.sql.Connection conn ;
Statement s ;
If you have already written these stmts in your code and you still can't get rid off errors then can you please post following info...
1. The erros you are getting.
2. Visual studio version and .net framework version you are working on.
Thanks,
Jaiprakash