Skip to content

Retrieving return value of stored procedure(NOT OutPut Parameter)

Rahul Goel

Asked Nov 27, 2005, 7:40 PM EST1 answer
Share
LinkedInX

I created a SP which is having
one input parameter
one output parameter
and one return value
which got displayed on the text window of the query analyzer
Now I am unable to get that value
can anyone of you help me out

best regards
Rahul Goel

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    sqlDaBewerber.InsertCommand.Parameters["@weitereInfo"].Value = txtDStudiumInfo.Text;

    sqlDaBewerber.InsertCommand.Parameters["@LetzterAenderer"].Value = Session["UserName"].ToString();

    sqlDaBewerber.InsertCommand.ExecuteNonQuery();

    Session["StudiumID"] = Convert.ToInt32(sqlDaBewerber.InsertCommand.Parameters["@RETURN_VALUE"].Value);


    Here is how  I did it.

    0