D
Diego F.
Hello. I'm having an error in a database access. I'm just making a select
query to a table and using a DataAdapter to Fill a DataSet.
Sometimes it works and sometimes it results in an exception: Arithmetic
operation resulted in an overflow.
The query is the following:
select pausa, (sysdate-fecha)*24*60*60, comentario from
tableA where id = 44
Executing in the DB server (Oracle) it always works. But from the code, many
times it gives the exception above.
The code is quite simple:
Dim con As New OracleConnection(_cadConexion)
Dim da As New OracleDataAdapter(query, con)
Dim res As New DataSet
Try
con.Open()
da.Fill(res)
Catch ex As Exception
The exception is thrown in the da.Fill(res) line.
Any idea?
query to a table and using a DataAdapter to Fill a DataSet.
Sometimes it works and sometimes it results in an exception: Arithmetic
operation resulted in an overflow.
The query is the following:
select pausa, (sysdate-fecha)*24*60*60, comentario from
tableA where id = 44
Executing in the DB server (Oracle) it always works. But from the code, many
times it gives the exception above.
The code is quite simple:
Dim con As New OracleConnection(_cadConexion)
Dim da As New OracleDataAdapter(query, con)
Dim res As New DataSet
Try
con.Open()
da.Fill(res)
Catch ex As Exception
The exception is thrown in the da.Fill(res) line.
Any idea?