Re: Index not used when UNICODE = true?

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Jun 3, 1:44 am, MarkusM. <Mark...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,

we've an Java application which select some records from SQL Server 2005. If
connection parameter unicode is active, every select executes an full table
scan an the app is very slow (> 1hour). After changing unicode=false, the
index is used and executing is processed in seconds.

Has someone an idea for this problem?

--
Markus M.
Softwareentwickler/Software Developer

Hi. It's a long-known issue. By default, the driver will send java
character data
as java characters (16-bit). If your table is defined as varchar (8-
bit), the DBMS
can't/won't use any index, because it can't be sure it's conversion of
the 16-bit
data to 8-bit won't corrupt it. If you tell the driver to send char
data as 8-bit,
the DBMS can use varchar indexes. The other solution is to convert the
table
to NVARCHAR.

Joe Weinstein at Oracle
.



Relevant Pages

  • Using Java from Javascript
    ... Opera and Netscape browsers allow you to include java methods calls in ... As Javascript has support for objects you can use ... The second link executes windows calculator. ...
    (NT-Bugtraq)
  • Using Java from Javascript
    ... Opera and Netscape browsers allow you to include java methods calls in your ... As Javascript has support for objects you can use objects returned by ... The second link executes windows calculator. ... localhost when the script is ...
    (Bugtraq)
  • Java and Javascript
    ... Opera and Netscape browsers allow you to include java methods calls in your ... As Javascript has support for objects you can use objects returned by ... The second link executes windows calculator. ... Both browsers donīt allow to make java calls to determinate methods. ...
    (Bugtraq)
  • Re: why kernel in C
    ... that is the system that executes as main. ... they may only have a handful of bytes of read/write memory. ... >> Java is that basic features of the language require a sizable set ... > semantics of Java. ...
    (comp.os.linux.development.system)
  • Re: Preventing the JVM from shutting down
    ... JVM hangs. ... JNI and then executes a java program. ... During the shutdown sequence on the C++ side, ...
    (comp.lang.java.programmer)