I have a SQL Server table csv_data_tbl
, and a collection colCommon
which is collected at the beginning from the same table.
A gallery allows users to modify the collection using input text fields. I want to patch this modified collection to same SQL Server table.
I am using a button with following onSelect
code:
Patch(CSV_DATA_TBL, colCommon)
But it is appending the records to the SQL Server table, so I get duplicate records with user modified data.
Is there any better solution there to update the SQL Server table from my collection?
Thanks