who helps me with this problem, had a system in .net 1.1 (VS2003) that was connected to the provider Provider=MSDAORA.1
, all this ran in a WS2003 to perfection, it was decided to migrate this solution to VS2008 and run about WS2012R2, since this Windows does not have x86 I can not use this provider anymore so we change the connection string to use is provider Provider=ORAOLEDB.ORACLE
, now we do not find it in tests and an SP is called in the following way:
initializar_conn()
comando = New OleDbCommand("BI.BI_Obtiene_ComFir_Trx", conn)
comando.CommandType = CommandType.StoredProcedure
Dim p_cod_ope As OleDbParameter = comando.Parameters.Add("pCodOpe", OleDbType.VarChar, 5)
p_cod_ope.Direction = ParameterDirection.Input
p_cod_ope.Value = CodOpe 'Codigo Operacion
Dim p_trx As OleDbParameter = comando.Parameters.Add("pCodTrx", OleDbType.VarChar, 20)
p_trx.Direction = ParameterDirection.Input
p_trx.Value = CodTrx 'Codigo Transaccion
Dim p_confir As OleDbParameter = comando.Parameters.Add("pConFir", OleDbType.VarChar, 50)
p_confir.Direction = ParameterDirection.Output
comando.ExecuteNonQuery()
vConFir = Convert.ToString(p_confir.Value).Trim
The point is that with the old provider, the p_confirm.value returned the data returned by the sp, but with the new provider I simply return the empty value.
Does anyone know what this is about? or what should I modify so that the invocation to the SP with the new provider works?
Best regards to all.