National character set support

Download JDBC driver

The JDBC driver provides support for the JDBC 4.0 API, which includes new national character set conversion API methods. This support includes new setter, getter, and updater methods for NCHAR, NVARCHAR, LONGNVARCHAR, and NCLOB JDBC types.

The following list shows new getter, setter, and updater methods to support the national character set conversion:


You must set the classpath to include the sqljdbc4.jar file to use these methods in your application.

To send String parameters to the server in Unicode format, the applications should either use the new JDBC 4.0 national character methods; or set the sendStringParametersAsUnicode connection property to "true" when using the non-national character methods. The recommended way is to use the new JDBC 4.0 national character methods where possible. For more information about the sendStringParametersAsUnicode connection property, see Setting the Connection Properties.

See also

Understanding the JDBC driver data types