Pblm with OraOLEDB.Oracle provider - Multiple-step operation generated errors. Check each status val [message #134787] |
Sat, 27 August 2005 00:47 |
stayi
Messages: 8 Registered: August 2005
|
Junior Member |
|
|
Hi,
I have been using MSDAORA.1 provider till recently when I changed to OraOLEDB.Oracle provider.
After changing to this I started getting a error.
My test VB code:
Dim cn As New ADODB.Connection
Dim rsDtl As New ADODB.Recordset
Dim sSQL As String
sSQL = "SELECT A.DSP_SKU FROM A,B WHERE A.1 = 'YREPLSKU01' A.2=B.2"
cn.ConnectionString = "Provider=OraOLEDB.Oracle;Password=XXX;User ID=XXX;Data Source=XXX"
cn.Open
rsDtl.CursorLocation = adUseClient
rsDtl.LockType = adLockOptimistic
rsDtl.Open sSQL, cn
rsDtl.Fields("DSP_SKU") = "1" 'It fails here if we use OraOLEDB.Oracle provider instead of MSDAORA.1.
NOTE: IT works fine if my recordset is a result of a single table query as below.
sSQL = "SELECT DSP_SKU FROM A WHERE 1 = 'YREPLSKU01'"
Please comment if there is a known solution for this.
Thanks.
[Updated on: Sat, 27 August 2005 02:08] Report message to a moderator
|
|
|
|
|
|
|
|
|
|