I've searched but have been unable to find info on this operation:
I have data that looks like this:
I need to update a table with this info. where the Row_Id corresponds to a Row_ID in table of mine.
FYI: This data is the result of a webform that has a textbox for each row of data, allowing a user to update many rows @ one time. Similar to a "Continous Form" in Access, or even a datasheet or datagrid.
So - I've looked around for batch updates / bulk updates, etc.. To no avail
If someone could tell me what this process would be called, I could search more on it.
Also - I'd like to do this in a stored procedure.
I would know the # of rows that need to be updated, the row_id of the record(s) to be updated and the value that the rows would be updated with.
I just cannot fathom the SQL needed to do this.. Possibly dynamic SQL built in my web code, but that's about the only thing I can imagine how to do it, right now.
Thanks as always!!
I have data that looks like this:
Code:
Row_ID | Value
---------------
10 | 8273
15 | 211
23 | 214
28 | 4432
31 | 232
I need to update a table with this info. where the Row_Id corresponds to a Row_ID in table of mine.
FYI: This data is the result of a webform that has a textbox for each row of data, allowing a user to update many rows @ one time. Similar to a "Continous Form" in Access, or even a datasheet or datagrid.
So - I've looked around for batch updates / bulk updates, etc.. To no avail
If someone could tell me what this process would be called, I could search more on it.
Also - I'd like to do this in a stored procedure.
I would know the # of rows that need to be updated, the row_id of the record(s) to be updated and the value that the rows would be updated with.
I just cannot fathom the SQL needed to do this.. Possibly dynamic SQL built in my web code, but that's about the only thing I can imagine how to do it, right now.
Thanks as always!!