G
Guest
Which of the ff scenarios is better in doing batch updates made to a dataset?
Scenario #1: Use a single stored procedure call and pass a string parameter containing a concatenated set of rows (separated by a defined delimiter)
Scenario #2: Use ADO.NET DataAdapter.Update() to do batch updates. (Although automated, the DataAdapter will loop through each modified or new row and call the corresponding stored procedure for a given SQL command/action. In effect, there are multiple SP calls during the batch update.
Appreciate comments/recommendations ... Thanks.
Scenario #1: Use a single stored procedure call and pass a string parameter containing a concatenated set of rows (separated by a defined delimiter)
Scenario #2: Use ADO.NET DataAdapter.Update() to do batch updates. (Although automated, the DataAdapter will loop through each modified or new row and call the corresponding stored procedure for a given SQL command/action. In effect, there are multiple SP calls during the batch update.
Appreciate comments/recommendations ... Thanks.