Chris,
That's more of a User Interface issue. What do you want the user to see when
they open a detail field, but the selected item has been "soft deleted"?
What is the user expecting to see? It may lead you down the path of other
issues to.
Say for example, the database is a list of songs, and each song has a
category, say Rock, Easy, Classical, etc. But then you soft deleted Rock, so
that you could expand it to Hard Rock and Modern Rock. When a user looks at
the song with the old Rock category, what do you expect them to see? You
have the option of doing soft-cateogization as well - not using foreign
keys.
Just store the categorization value (string) into the field. But this leads
to data-integrity issues.
HTH
Steve
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
In the database design I'm using a soft delete (a column flaged as
IsDeleted) instead of a hard delete, what should you do if the item is deleted in one
table yet you go a create a dropdownlist with a list of items and record
you bring up has that soft deleted item so you try to "set" the selected vaue
to it and it no longer is in the list since your sql statement looks for
IsDeleted = 0? You'll get an error not in the list anymore (not an item in
the list). You could Try/ Catch it. But is there a more common way to
prevent/avoid this?
Thanx.