Hello Tek-Tippers!
I am having a bit of a problem. I have a table on our server that handles some customer data. The data field invamt will store the dollar amount for our customer data.
The field is defined as NUMBER(15,2).
This is the code I am using to pass in the value to the stored procedure.
The error I receive is the following:
Why would it do this? I mapped the datatype as recommended by the MSDN site. Any ideas on how to get around this or if I'm doing something wrong? Thank you!
-Diran
I am having a bit of a problem. I have a table on our server that handles some customer data. The data field invamt will store the dollar amount for our customer data.
The field is defined as NUMBER(15,2).
This is the code I am using to pass in the value to the stored procedure.
Code:
Public Function InsertCustData(ByVal InvAmt As Double)
Try
'Set up our database and dbcommand
Dim dbInsert As Database = DatabaseFactory.CreateDatabase()
Dim dbcInsert As OracleClient.OracleCommand = dbInsert.GetStoredProcCommand("sendCustdata")
'Pass in the parameter
dbInsert.AddInParameter(dbcInsert, "invamt", OracleType.Number, InvAmt)
'Execute the StoredProcedure
dbInsert.ExecuteNonQuery(dbcInsert)
Catch ex As Exception
Throw New ApplicationException(ex.Message)
End Try
End Function
The error I receive is the following:
Code:
Cannot bind type System.Double as Blob.
Why would it do this? I mapped the datatype as recommended by the MSDN site. Any ideas on how to get around this or if I'm doing something wrong? Thank you!
-Diran