Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OracleDataAdapter filling DataTable differently than the same query does in SqlDeveloper

BotisFeb 1 2022

Hello all,

I am facing an odd issue where the query in C# using the OracleDataAdapter is not filling the data completely, there are two columns where only part of the data is being populated. When I run this same query in the database, there is no missing data on any row.

Here is the pertinent C# code where we establish the database connection and fill the DataTable using the OracleDataAdapter:
2022-02-01_7-18-16.png
I am attaching two screenshots. The first is showing the issue we are seeing with the OracleDataAdapter, where you can see only two rows are populating the two Ship1 & Ship2 columns data successfully. The second is showing the exact same query ran in the database where you can see Ship1 & Ship2 have data on every row.

2022-02-01_7-14-56.png
2022-02-01_7-13-28.png
I haven't dealt with this issue before and am at a loss as to what might be causing this to happen. Any help/suggestions would be appreciated.

Comments
Post Details
Added on Feb 1 2022
3 comments
872 views