PC Review


Reply
Thread Tools Rate Thread

OracleDataAdapter.Fill bug? or just not working for me?

 
 
Cip
Guest
Posts: n/a
 
      20th May 2004
Hi I am using the Microsoft .NET Provider for Oracle found in
System.Data.OracleClient.

For some reason OracleDataAdapter.Fill NEVER works (I tried it with
many different queries), it always throws an exception.

code snippet:

Dim comm As OracleCommand = Connection.CreateCommand
Dim tbl As New DataTable
Dim adapter As New OracleDataAdapter

comm.CommandText = "Select * from Test"
adapter.SelectCommand = comm

Connection.Open()
adapter.Fill(tbl)
Connection.Close()


"An unhandled exception of type
'System.Data.OracleClient.OracleException' occurred in system.data.dll
Additional information: System error."

not much help. if i add a watch on the exception, here is ex.message:
"OCI-22053: overflow error"

There is no other useful help, no other inner exceptions.

Note that this error message occurs with ANY SQL Statement I try.

Using the other objects in System.Data.OracleClient have given me no
problems; I have used DataReaders, Command.ExecuteNonQuery without
issues.

FYI: I have VS2003, .NET FW 1.1, OraClient 8.1.7.
 
Reply With Quote
 
 
 
 
Miha Markic [MVP C#]
Guest
Posts: n/a
 
      20th May 2004
Hi Cip,

Try few things:
Dim comm As new OracleCommand instead of connection.createcommand
Within select try selecting just one field.

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Cip" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi I am using the Microsoft .NET Provider for Oracle found in
> System.Data.OracleClient.
>
> For some reason OracleDataAdapter.Fill NEVER works (I tried it with
> many different queries), it always throws an exception.
>
> code snippet:
>
> Dim comm As OracleCommand = Connection.CreateCommand
> Dim tbl As New DataTable
> Dim adapter As New OracleDataAdapter
>
> comm.CommandText = "Select * from Test"
> adapter.SelectCommand = comm
>
> Connection.Open()
> adapter.Fill(tbl)
> Connection.Close()
>
>
> "An unhandled exception of type
> 'System.Data.OracleClient.OracleException' occurred in system.data.dll
> Additional information: System error."
>
> not much help. if i add a watch on the exception, here is ex.message:
> "OCI-22053: overflow error"
>
> There is no other useful help, no other inner exceptions.
>
> Note that this error message occurs with ANY SQL Statement I try.
>
> Using the other objects in System.Data.OracleClient have given me no
> problems; I have used DataReaders, Command.ExecuteNonQuery without
> issues.
>
> FYI: I have VS2003, .NET FW 1.1, OraClient 8.1.7.



 
Reply With Quote
 
psycho_sniper
Guest
Posts: n/a
 
      2nd Jun 2004
I am getting the same error, although in my case I have been able to
find where the problem starts.
The error occurs when retrieving an OracleNumber that is outside the
allowable range: (+-)79,228,162,514,264,337,593,543,950,335.

msdn includes the following remarks for the OracleNumber.Value
property:
If you attempt to retrieve a value outside the allowable range, Oracle
returns the "OCI-22053: overflow error" message. Use the ToString
method to retrieve such values.

Unfortunately I have not yet worked out how to get around this while
still using the Fill method but if I do, I will post it.

Note: I am using VS2003, .NET FW 1.1, Oracle9i


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OracleDataAdapter.Fill does not return rows =?Utf-8?B?S2lzaG9yZQ==?= Microsoft ADO .NET 1 8th Aug 2007 11:12 PM
OracleDataAdapter.Fill throwing "Index out of Range" error dalaeth@gmail.com Microsoft ADO .NET 0 8th Aug 2006 03:42 AM
OracleDataAdapter fill method - Refill problem =?Utf-8?B?bXNwenp6?= Microsoft ADO .NET 3 6th Dec 2005 01:45 PM
Time Consuming with large scale data by using OracleDataAdapter.Fill A Little Cat Microsoft ADO .NET 2 22nd Sep 2005 11:42 AM
OracleDataAdapter Update() not working josepinchero@yahoo.com Microsoft ADO .NET 3 21st Jul 2005 07:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:43 PM.