Re: Japanese words

From: KC Wong (my_at_privacy.net)
Date: 08/05/04

  • Next message: anurag: "Re: Same Java SQL database engine on both client and server make more sense?"
    Date: Thu, 5 Aug 2004 13:09:53 +0800
    
    

    Emilio said:
    > > I'm trying to read a varchar(50) field writed in Japanese using this
    > > sentence:
    > > is = rset.getBinaryStream(num);
    > > at that sentence the JDBC driver shows the following error:
    > > java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
    > > JDBC]Unsupported data conversion.

    Simon said:
    > I don't really know, but the most obvious data type for Japanese in MSSQL
    > would be nvarchar(50), ie. Unicode. Apart from that, varchar/nvarchar are
    > character data, not binary, so perhaps you should be using a different
    > method instead of getBinaryStream()?

    I have successfully used the MS JDBC driver for SQL server to select/insert
    Chinese data from MSSQL server. I used getBinaryStream() for the field.

    The problem is probably because of the data type - try nvarchar instead of
    varchar, as Simon said.


  • Next message: anurag: "Re: Same Java SQL database engine on both client and server make more sense?"

    Relevant Pages

    • Re: Japanese words
      ... but the most obvious data type for Japanese in MSSQL ... I have successfully used the MS JDBC driver for SQL server to select/insert ... Chinese data from MSSQL server. ... varchar, as Simon said. ...
      (microsoft.public.sqlserver.jdbcdriver)
    • Re: Declaration problem
      ... x is not overflowing, the result of your formula is overflowing. ... data type of a formula result. ... can't calculate x*30000 where x is an int>1. ... Simon Murphy ...
      (microsoft.public.excel.programming)
    • Re: VBA code false "rst.FindFist strSearch"
      ... "Simon" wrote in message: ... strUser has also a numeric value. ... The error message is "Data type mismatch in criteria expression". ...
      (comp.databases.ms-access)
    • RE: Combine 2 text values
      ... "simon" wrote: ... > I get an error message: error 403: invalid operator for data type. ... > equals add, type equals text. ...
      (microsoft.public.sqlserver.programming)
    • Re: Access 97 to SQL
      ... The timestamp is a data type, ... the timestamp field does not need to be part of the SELECT ... > converted the Access tables to a SQL Server 2000 database and linked the ... > the way I set up Autonumbering in SQL? ...
      (microsoft.public.access.externaldata)