S
sherifffruitfly
Hi all,
I'm trying to save datasets (well, datatables in them) back to the
main database. When the (key value in the) record in the dataset to be
saved already exists in the main db, I get a "uniqueness constraint
violated" exception.
I would like my record-writing routine to overwrite pre-existing db
records, if encountered, with the records in the dataset/table. Do I
have to actually manually code a find-record-for-this-key-and-delete-
if-found routine myself? Or is there something as simple as (making
sh#t up here) a DataAdapter.Insert.Overwrite = true property
somewhere?
Thanks for any suggestions,
cdj
I'm trying to save datasets (well, datatables in them) back to the
main database. When the (key value in the) record in the dataset to be
saved already exists in the main db, I get a "uniqueness constraint
violated" exception.
I would like my record-writing routine to overwrite pre-existing db
records, if encountered, with the records in the dataset/table. Do I
have to actually manually code a find-record-for-this-key-and-delete-
if-found routine myself? Or is there something as simple as (making
sh#t up here) a DataAdapter.Insert.Overwrite = true property
somewhere?
Thanks for any suggestions,
cdj