Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Garbage in adhoc char columns

Garbage in adhoc char columns

From: Francisco <fjgonzalez_at_arion.es>
Date: 21 Mar 2006 04:13:46 -0800
Message-ID: <1142943226.183451.146480@g10g2000cwb.googlegroups.com>


Hello all,

  If I launch the sentence:

     select '31' from dual

  using ADO in an COM+ componet (in a dllhost process), I get the 2 character string 31, in a recordset with a field of type adChar, with the properties DefinedSize=32 and ActualSize=2. This recordset is returned to the caller but there the field value expands to 32 characters (31 followed by GARBAGE) changing ActualSize to 32.

  It seems that this only happens with a COM+ component issuing the data request and with oracle 9.2.0.4 or 9.2.0.5 database server with NLS_LANG set to WE8ISO8859P15.

  A database with NLS_LANG set to WE8ISO8859P1 returns DefinedSize set to 2 although changing NLS_LANG in any instance has not been tested.

  żdoes anyone know how to handle that data query and do not get that trailing GARBAGE?   

  Thanks in advance. Received on Tue Mar 21 2006 - 06:13:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US