This puts a select statement at bottem of the update statment in the stored procedure.
How do I call this stored procedure and get the returned row into a dataset
Could you show me the code for calling this sp since I usually use the
.ExecuteNonQuery() on the command object which doesnt' generate a dataset
Thanks

retreiving updated row in storedProc using "refresh data set" option
akeiii
// Usually done in Form_Load or similar method
SalesDataSet sales = new SalesDataSet();
salesDataAdapter.Fill(sales);
// Display the dataset
// Allow user to update, modify, and delete rows via a DataGrid or other mechanism
// User clicks "Save Changes" - This code would be in btnSaveChanges_Clicked
salesDataAdapter.Update(sales);
Mark Schmidt-MSFT
Thanks
kyus
smhaig,
You still can use stored procedures, you just have to change the Select, Update, Delete and Insert command properties of the adapter to use the stored procedures that you have definied (and not queries).
Hope this helps.
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
Sethimus
Is it possible that a Stored Procedure to return a value directly Is it a User Defined Function (UDF) that you might be using
cheers,
Paul June A. Domag