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

  • SEARCH
  • Home
  • 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 8128719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:00:37+00:00 2026-06-06T08:00:37+00:00

I have a page with a textbox that passed a value through a stored

  • 0

I have a page with a textbox that passed a value through a stored procedure in Oracle. the procedure got changed so, there are now 2 parameters, one for the input value and a second one that returns an integer value back.

Here is the Oracle procedure:

procedure UnoxDataFix(p_shpmt_nbr in pkms.asn_hdr.shpmt_nbr%type, retval out integer) is
  begin
  retval:=0;
    for r in (
        -- simple select statement
        )
    loop    
     if(r.stat_code = 10 and r.whse_xfer_flag = 'Y')
     then     
        update pkms.asn_dtl ad 
          -- simple set statement
        update pkms.asn_hdr ah
          -- simple set statement
          where ah.shpmt_nbr = p_shpmt_nbr
           RETURNING 1 into retval;
        commit;   
      end if;    
    end loop;
  end;

And here is the core C# code I had:

this.oraServer.ExecuteNonQuery(this.connectionString, CommandType.Text, "begin INTEGRATION.UnoxDataFix('" + input + "'); end;");

The connection string works. It’s just the actual procedure that is giving the error. The ‘input’ value is the actual value that is sent to the procedure. But for returning the ‘retval’ back to the site, I’m not sure how to. I have tried Googling what I can, but it doesn’t help.
I’m a little slow, so all comments are most welcome. 🙂

  • 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-06T08:00:39+00:00Added an answer on June 6, 2026 at 8:00 am

    Because the procedure now expects 2 parameters, you need to give 2 parameters and not only the input parameter.
    Also, I prefer to use bind variables to prevent sql injection. (Yes, you can also use a bind variable for the OUT parameter).

    begin INTEGRATION.UnoxDataFix(:input, :retval); end;
    

    I am not familiar with the specifics of C#, so I can’t help you with the exact methods to use to insert and retrieve the values.

    On a side note, what kind of naming convention is this? Are you aiming for unreadability? 🙂

    pkms.asn_hdr.shpmt_nbr

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

Sidebar

Related Questions

I have a ASP.NET web page that contains many textboxes. Each textbox has a
On a previous page I have a textbox. Now the user enters in a
I have a standard textbox and I've got jQuery on the page. I want
Here's the scenario. I have a search page with a TextBox that allows someone
In my page I have a read-only TextBox that contains a rather large amount
I have an ASP.NET page that has two input elements: A TextBox that is
I have a page that contains an element (a TextBox) that has two CSS
I am developing an asp.net page/application. I have created a textbox that i set
I have a page with a button and a textbox, when a input <string>
I have a white page with only a 500x250 textbox and an image. 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.