Re: Remove unicode from SQL
From: Joe Weinstein (joeNOSPAM_at_bea.com)
Date: 08/21/04
- Previous message: Richard Attermeyer: "Re: What do you guys think of Hibernate?"
- In reply to: Keith: "Re: Remove unicode from SQL"
- Next in thread: Keith: "Re: Remove unicode from SQL"
- Reply: Keith: "Re: Remove unicode from SQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 21 Aug 2004 08:31:41 -0700 To: Keith <mcgillivrayk@prodigy.net>
Keith wrote:
> Joe Weinstein <joeNOSPAM@bea.com> wrote in message news:<4126D9C3.8050607@bea.com>...
>
>>There should be a driver property you can define to stop the driver doing
>>that. All commercial drivers I know of do. The default should be to do as the
>>driver does, to ensure that any valid Java string (16-bit characters) get sent
>>to the DBMS unchanged. However, for varchar values and indexes it makes the
>>DBMS have to convert back to varchar, and the conversion means that the DBMS
>>will skip indexes and do table scans (slow).
>>Joe Weinstein at BEA
>>
>
> Thanks Joe.
> Is this the property that you are refering to on JTurbo?
> SendStringParametersAsUnicode={true | false}.
> Determines whether string parameters are sent to the SQL
> Server database in Unicode or in the default character
> encoding of the database. True means that string parameters are sent
> to SQL Server in Unicode.
> False means that they are sent in the default encoding.
That's it. Set it to false.
Joe
- Previous message: Richard Attermeyer: "Re: What do you guys think of Hibernate?"
- In reply to: Keith: "Re: Remove unicode from SQL"
- Next in thread: Keith: "Re: Remove unicode from SQL"
- Reply: Keith: "Re: Remove unicode from SQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|