do you use "sun.jdbc.odbc.JdbcOdbcDriver" or do you use "sun.odbc.jdbc.OdbcJdbcDriver" in your code?
Herman
amit bhadre
Ranch Hand
Joined: Jan 23, 2006
Posts: 124
posted
0
I used "sun.jdbc.odbc.JdbcOdbcDriver"
Now I got result as Driver is loaded.
Problem I now getting is Connction con=DriverManager.getConnection("jdbcdbc:MobileX");
In this line connection is not happening to SQL server.I used MobileX as Data Source Name and connecting to MobileX Data Source in sql server. what is the solution?
Just download Microsoft's own driver or jTDS's driver and follow the documentation. I only mention it because using the JDBC-ODBC bridge is not recommended where an alternative exists.