ADO error setting filed when using oralce hint in sql select
From: Mark Fisher (Fisher_at_discussions.microsoft.com)
Date: 07/21/04
- Next message: Strider: "Using Remote Data Provider with JET provider"
- Previous message: Al S: "Typed DataSet"
- Next in thread: Val Mazur: "Re: ADO error setting filed when using oralce hint in sql select"
- Reply: Val Mazur: "Re: ADO error setting filed when using oralce hint in sql select"
- Reply: Mark Fisher: "RE: ADO error setting filed when using oralce hint in sql select"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Jul 2004 03:15:02 -0700
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
- Next message: Strider: "Using Remote Data Provider with JET provider"
- Previous message: Al S: "Typed DataSet"
- Next in thread: Val Mazur: "Re: ADO error setting filed when using oralce hint in sql select"
- Reply: Val Mazur: "Re: ADO error setting filed when using oralce hint in sql select"
- Reply: Mark Fisher: "RE: ADO error setting filed when using oralce hint in sql select"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|