Re: ADO error setting filed when using oralce hint in sql select

From: Val Mazur (group51a_at_hotmail.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 19:31:37 -0400

Hi Mark,

What does hint do in a case of Oracle? do you get some sort of a
concatenated field value? If yes, then you cannot edit
concatenated/calculated values. It is a restriction by-design and these
columns are always read-only

-- 
Val Mazur
Microsoft MVP
"Mark Fisher" <Mark Fisher@discussions.microsoft.com> wrote in message 
news:3F638C00-9033-4626-9265-A094D2C77FBD@microsoft.com...
> When using an oracle hint, the first field in the select clause becomes 
> not editable...if you try to edit it you get error "-214717887 multiple 
> step operation caused error.  Check status of each field"
>
> without the hint all is fine.
>
> with the hint all fields other than the first field are also fine.   Any 
> ideas how to resolve?
>
>
> skeleton sample code:
>
>
> DIM rsCmd As ADODB.Recordset
> DIM rsRet As ADODB.Recordset
> Dim cmd     As ADODB.Command
>
>
>   With cmd
>       Set .ActiveConnection = moConn
>
>       cmd.commandtext = "SELECT /*+ RULE */ CODE_ID, CODE FROM CODE WHERE 
> 1 = 0"
>
>       Set rsRet = New ADODB.Recordset
>
>       With rsRet
>           .CursorLocation = adUseClient
>           .Open cmd, , adOpenStatic, adLockBatchOptimistic
>           Set .ActiveConnection = Nothing
>
>           .Addnew
>
>       End With
>
>       Set .ActiveConnection = Nothing
>   End With
>
>   rsRet("CODE") = "XYZ" 'ok
>   rsRet("CODE_ID") = 1 'generates the error
>
> 


Relevant Pages

  • Re: Why Statistics doesnt match reponse time?
    ... > four patches since then that have substantially improved the optimizer. ... Patches would not help him here. ... His hint causes the optimizer to do the ... As for the Oracle 9.2.0.6, the latest version, the optimizer was improved, ...
    (comp.databases.oracle.server)
  • Re: select value within an interval
    ... Any idea why Oracle reads the whole table or does index FFS if I use ... If you are going to hint "fully" hint as recommended by Jonathan Lewis. ... Be sure that the information you are providing to the optimizer is what ...
    (comp.databases.oracle.server)
  • Re: Oracle Hint Behavior
    ... Oracle would treat them as only "suggestions" but I thought in 10g they ... like to be able to explain why the hint is being ignored now. ... optimizer to use a particular index no matter how hard we tried. ... of DEC Rdb right after Oracle acquired Rdb back in '94/'95 timeframe. ...
    (comp.databases.oracle.server)
  • Re: Oracle Hint Behavior
    ... Oracle would treat them as only "suggestions" but I thought in 10g they ... like to be able to explain why the hint is being ignored now. ... There is an interesting way to influence the optimizer without the use ... of DEC Rdb right after Oracle acquired Rdb back in '94/'95 timeframe. ...
    (comp.databases.oracle.server)
  • Re: Append Bypass_recursive_check
    ... particular hint. ... Also the version of Oracle. ... transformation and temp table transformation ... and your are expecting your queries to do ...
    (comp.databases.oracle.server)