I am attempting to using jTDS to connect to SQLServer 2000 in an Android application. I originally tried this using jTDS 1.3.1 but this resulted in class not found errors so I switched to 1.2.8. Now when I create my connection I receive the following exception when I try to create a connection:
10-14 14:04:07.812: W/System.err(15375): java.sql.SQLException: Charset 0x0404D00000/MS950 is not supported by the JVM.
10-14 14:04:07.822: W/System.err(15375): at net.sourceforge.jtds.jdbc.ConnectionJDBC2.loadCharset(ConnectionJDBC2.java:1445)
10-14 14:04:07.822: W/System.err(15375): at net.sourceforge.jtds.jdbc.ConnectionJDBC2.setCollation(ConnectionJDBC2.java:1525)
10-14 14:04:07.832: W/System.err(15375): at net.sourceforge.jtds.jdbc.TdsCore.tdsEnvChangeToken(TdsCore.java:3285)
10-14 14:04:07.832: W/System.err(15375): at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2352)
10-14 14:04:07.832: W/System.err(15375): at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:616)
10-14 14:04:07.832: W/System.err(15375): at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:356)
10-14 14:04:07.832: W/System.err(15375): at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:188)
10-14 14:04:07.832: W/System.err(15375): at java.sql.DriverManager.getConnection(DriverManager.java:175)
I have seen similar errors elsewhere where the problem was a malformed JVM installation but as I am in an Android environment this does not make sense.
I also tried 1.2.7 given the asker's success in this question but it was to no avail.
EDIT :
Here is my calling code although I'm not sure it is helpful in decerning the problem. It is in an AsyncTask's doInBackground method:
if(this.sqlConnection==null){
Properties connectionProps = new Properties();
connectionProps.put("user", "sa");
connectionProps.put("password", **REMOVED**);
this.sqlConnection = DriverManager.getConnection("jdbc:jtds:sqlserver://192.100.100.6/MES", connectionProps);
this.checkTestsStatement = this.sqlConnection.prepareStatement("SELECT TOP 10 * from ATE_Test_Log where EndTime < ?");
}