N
Nathan Mellor
This should be simple but it doesn't seem to be.
How can I update or add a row as a concise, atomic operation.
You'd think that filling up a dataset with rows, complete with primary keys,
would do it. That the DataAdapter would see that this row is new and add it,
and this row isn't , so update it. But it doesn't.
Looking at SQL, UPDATE will do the job if the row is there, but nothing if
it is not. INSERT will work if its not there, but will complain about
primary / unique key constraints if it is.
Any ideas for a concise, one step UDATE_OR_ADD?
Nathan
How can I update or add a row as a concise, atomic operation.
You'd think that filling up a dataset with rows, complete with primary keys,
would do it. That the DataAdapter would see that this row is new and add it,
and this row isn't , so update it. But it doesn't.
Looking at SQL, UPDATE will do the job if the row is there, but nothing if
it is not. INSERT will work if its not there, but will complain about
primary / unique key constraints if it is.
Any ideas for a concise, one step UDATE_OR_ADD?
Nathan