I am new to writing Stored Procedure. So I wrote one with output parameters and want to access the output value, hot to do it.
My Stored Procedure:
A
You need to close the connection before you can use the output parameters. Something like this
con.Close(); MessageBox.Show(cmd.Parameters["@code"].Value.ToString());