Remove unicode from SQL
From: Keith (mcgillivrayk_at_prodigy.net)
Date: 08/21/04
- Next message: Joe Weinstein: "Re: Remove unicode from SQL"
- Previous message: Tung Chau: "Mapping a UNIQUE pair of keys in a MySQL table into .hbm.xml in Hibernate"
- Next in thread: Joe Weinstein: "Re: Remove unicode from SQL"
- Reply: Joe Weinstein: "Re: Remove unicode from SQL"
- Reply: Luke Webber: "Re: Remove unicode from SQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Aug 2004 18:58:48 -0700
When using Jturbo 3.0 JDBC driver we are seeing the SQl sent to MS SQL
Server 2000 with Unicode N prepended to the string parameters.
Example:
Parameterized SQL: Select name, address, phone from myaddresstable
where name = ?
Resulting SQL:
Select name, address, phone from myaddresstable where name = N'myname'
The collation settings are set to Latin1_General_BIN and the JTurbo
connection string has the charset=Cp1252.
The string fields are of Char type, not nchar.
We are using the setString method on the preparedstatement.
The execution plans on these queries are showing that the indexes are
not being used because of the conversion that needs to be done.
Any ideas?
Thanks in advance for any help on this.
- Next message: Joe Weinstein: "Re: Remove unicode from SQL"
- Previous message: Tung Chau: "Mapping a UNIQUE pair of keys in a MySQL table into .hbm.xml in Hibernate"
- Next in thread: Joe Weinstein: "Re: Remove unicode from SQL"
- Reply: Joe Weinstein: "Re: Remove unicode from SQL"
- Reply: Luke Webber: "Re: Remove unicode from SQL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|