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 7767135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:36:02+00:00 2026-06-01T15:36:02+00:00

CommandBuilder is a very handy class that helps us avoid having to write INSERT,UPDATE

  • 0

CommandBuilder is a very handy class that helps us avoid having to write INSERT,UPDATE and DELETE commands. It does it very easily when CommandType is Text. But when CommandType is StoredProcedure and the pocedure returns a SYS_REFCUSOR it fails to generate the SQL. I try to use sotred procedures to retrieve data from Oracle database. Selection goes easily. (I assign the output paramater – in this case the cursor returned- to a IDataReader). Is this still possible for CommandBuild to generate update SQLs with stored procs returning cursor? Or do I have to write all those SQLs manually. (How I miss MS SQL Server for its being able to return a result with stored procedures.)

  • 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-06-01T15:36:03+00:00Added an answer on June 1, 2026 at 3:36 pm

    After a long hopeless searches I found the answer to my question from the most authorized source: ORACLE

    Here’s what ODP.NET documentation notes:

    REF CURSOR types cannot be updated. However, data that is retrieved into a DataSet
    can be updated. Therefore, the OracleDataAdapter class requires a custom SQL
    statement to flush any REF CURSOR data updates to the database.

    The OracleCommandBuilder object cannot be used to generate SQL statements for
    REF CURSOR updates

    I think that last sentence is just the right answer to my question. Hope this will help somebody.

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

Sidebar

Related Questions

I am working on a class that deals with a lot of Sql objects
i'm trying to delete a row in the database with GetDeleteCommand() and DataAdapter.Update(). with
I am using the Command builder in scons to specify that a particular script
Command builder builds Parameter Object. What does it mean by parameter object? Why are
Im new to scons and am having problems with scons dependancies in a hierarchichal
I've been working on this since yesterday and I just can't update my database.
I am working on a project that needs a database. I have found a
How can I rewrite this so that it is using parameters instead of string
I've got an assignment which requires me to update the northwind database, I've done
I'm having trouble listing all the tables in a certain database in vb.net: Public

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.