J
Jeff Washburn
Hi All,
I have the following code. It is pretty simple and doesn't work. All
I am trying to do is open a file and put the data into an oracle clob
using ADO.NET and the Microsoft Oracle Data Provider for .NET.
Can anyone see what is wrong, or have a simple sample?
Thanks!!
Jeff
strSQL = "INSERT INTO VENDOR_TRANSACTIONS (ORDER_DATA) "
strSQL &= "VALUES ORDER_DATA) "
Dim fs As New IO.FileStream(fiTemp.FullName,
IO.FileMode.Open, IO.FileAccess.Read)
Dim tempBuff(fs.Length) As Byte
fs.Read(tempBuff, 0, fs.Length)
fs.Close()
Dim parmData As New OracleParameter
With parmData
.Direction = ParameterDirection.Input
.OracleType = OracleType.Clob
.ParameterName = "ORDER_DATA"
.Value = tempBuff
End With
cm.Parameters.Add(parmData)
cm.CommandText = strSQL
cm.ExecuteNonQuery()
I have the following code. It is pretty simple and doesn't work. All
I am trying to do is open a file and put the data into an oracle clob
using ADO.NET and the Microsoft Oracle Data Provider for .NET.
Can anyone see what is wrong, or have a simple sample?
Thanks!!
Jeff
strSQL = "INSERT INTO VENDOR_TRANSACTIONS (ORDER_DATA) "
strSQL &= "VALUES ORDER_DATA) "
Dim fs As New IO.FileStream(fiTemp.FullName,
IO.FileMode.Open, IO.FileAccess.Read)
Dim tempBuff(fs.Length) As Byte
fs.Read(tempBuff, 0, fs.Length)
fs.Close()
Dim parmData As New OracleParameter
With parmData
.Direction = ParameterDirection.Input
.OracleType = OracleType.Clob
.ParameterName = "ORDER_DATA"
.Value = tempBuff
End With
cm.Parameters.Add(parmData)
cm.CommandText = strSQL
cm.ExecuteNonQuery()