Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Have LONG, need CLOB, want answer!
Aha! It worked! Thanks a trillion! We changed the LONG column in ORACLE
to a LONG_RAW column and ORACLE seems compliant. To move data in and out
as a LONG or LONG_RAW, you don't need C++ -- VB does fine, you just have
to use parameters (see below).
sChunk = rs!BodyText.GetChunk(1024) & ""
sBodyText = sBodyText & sChunk
Loop
If .ActiveConnection Is Nothing Then
Set .ActiveConnection = cnNewConnection 'New ADODB.Connection
End If
.CommandText = sSQL
.Prepared = True
.Parameters.Append .CreateParameter("Body_Text", adLongVarBinary, ,
1000000, sBodyText) 'allowed a full meg for space
.Execute , , adCmdText + adExecuteNoRecords
.Parameters.Delete "Body_Text"
End With
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Wed Sep 08 1999 - 15:15:36 CDT