I have created and filled a dataset with a single column of values. I want to take those values, looping through them one by one, and use those values as an input parameter in a stored procedure. I then want to execute that stored procedure using each of the dataset rows values as the parameter. How can I do this?
I know how to loop through the rows in the dataset (below) but I don't know how to pull the value from each row and use it as an input parameter. Any ideas?
Thanks for the help!!
I know how to loop through the rows in the dataset (below) but I don't know how to pull the value from each row and use it as an input parameter. Any ideas?
Code:
Dim dst As DataTable
Dim dstr As DataRow
For Each dst In ds.Tables 'ds is the dataset i already populated, let's say.
For Each dstr In dst.Rows
.?
.?
.?
Thanks for the help!!