Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello World
I have C# Winform application for workig with SQL datadase.
In SQL database I have stored procedures for SELECT, INSERT, UPDATE, DELETE jobs.
My DataSet is configured to use those procedures.
Stored procedure for INSERT has one OUTPUT parameter ( ID of saved new record ).
I would like to assign a value of that parameter to some variable ( say: int x = ...)
I don't know how can I get the value of OUTPUT parameter from TableAdapter.
Many thank' for reading my text
Posted

1 solution

Have a look here: HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET[^].
There you'll find a solution ;)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900