Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

National Character Set Support

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 is a list of new getter, setter, and updater methods to support the national character set conversion:

Note Note

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

In order 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.