Java jDTS setNString() throws an AbstractMethodError

95 views Asked by At

I'm trying to insert Unicode characters using Java, to a SQL Server 2016 database. Currently, I'm experiencing an issue with the Statement.setNString(unicodeData) method, when using the jTDS Type 4 JDBC Driver. The method throws an AbstractMethodError.

The normal Statement.setString(unicodeData) method works fine, but it inserts Unicode characters as question marks in the db. I changed to a SQL Server driver and the Statement.setNString(unicodeData) inserts Unicode characters with no issues, but the customer cannot change drivers like I did. Any ideas or reasons why this happens or any way to fix this?

0

There are 0 answers