Answered
DB looping dilemma
First of all, as a rule of thumb, I try to avoid loops
whenever possible. In this case, I'm not sure I have an option.
I've been told to modify an import utility I built so that the
system doesn't overwrite a field *IF* that field's import value is
null. So, instead of having one nice UPDATE statement (update
myTable FROM tempTable WHERE myTable.PK = tempTable.FK) which runs
pretty fast and efficient, and now I'm having to do a nasty loop
over the data-set for each contact and then checking each field and
update that contact's field if it isn't blank. Can someone think of
a better way to do this?
