Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6115783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:07:53+00:00 2026-05-23T15:07:53+00:00

I have a query that seems to be returning the wrong data from the

  • 0

I have a query that seems to be returning the wrong data from the OleDbDataReader. I’ve included the actual code below (with user id and pass changed). I’m running on Oracle Express 10g.

If I run the SQL below in the Oracle Web Admin Utility, from Toad, or if I change the the code below to be OracleConnection, all 4 records that are returned have values in the “answer_text” column.

From OleDbDataReader, however, this code throws an exception on the second record, where it is returning null for “answer_text” instead of the expected value: “This is the second open ended comment. Things are really getting crazy now.”

The field in question is defined as CLOB in the database.

So my question is, is the OraOLEDB provider just plain unreliable? This is really spotty behavior. 3 of the 4 records return data correctly. Simply changing out OracleConnection with OleDbConnection and removing “Provider” from the connection string seems to work fine.

I don’t think my client wants to do this, though, for distribution/support reasons. Oracle is only 1 of 4 database vendors we support, and this code works fine for the rest.

Is this a known bug? Is there some arcane setting I’m missing? I don’t have very much experience with Oracle, and I couldn’t find anything from googling this issue. Any advice would be appreciated.

        var connection = new OleDbConnection("Provider=OraOLEDB.Oracle;Data Source=localhost;User Id=x;Password=x;");
        connection.Open();
        var command = connection.CreateCommand();
        command.CommandText = "select response_id, item_id, subitem_id, answer_id, answer_text, other_text, column_answer_id from sur_response_answer where item_id in (180, 181)";
        var reader = command.ExecuteReader();
        while (reader.Read())
        {
            if (reader.IsDBNull(reader.GetOrdinal("answer_text")))
                throw new Exception("This should not be happening");
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:07:53+00:00Added an answer on May 23, 2026 at 3:07 pm

    Oracle Support has bug 9866728, but that applies to OLEDB provider 11.2.0.1. It has been fixed in the patches listed in document 1272856.1. To access those documents and the patches you need an Oracle Support account.

    About Oracle Express 10g, it is known to be an unsupported release (no patch was ever released) with some known bugs – I would not use it for a production application. Joining the Oracle Partner Network will allow you to use development/test license to develop and test against the actual releases, not an outdated (although free…) one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query that I'm executing from a .NET application to a SQL
I have a query that pulls up questions from one table and answers from
I have this query that works as desired, but it seems like there should
I have a query that returns as a result what seems to be a
I have the following SQL query that runs fairly well, however it seems to
I have a pretty complicated Linq query that I can't seem to get into
I have a query that is dynamically built after looking up a field list
I have a query that originally looks like this: select c.Id, c.Name, c.CountryCode, c.CustomerNumber,
I have a query that looks like this: public IList<Post> FetchLatestOrders(int pageIndex, int recordCount)
I have a query that is currently using a correlated subquery to return the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.