You are here: Re: Database design question... « MsSQL Server « IT news, forums, messages
Re: Database design question...

Posted by David Portas on 11/02/05 00:19

"craig" <e@mail.com> wrote in message
news:8TM9f.163662$lI5.141621@tornado.ohiordc.rr.com...
>I have a question about database design that I think some of the more
>experienced developers might be able to answer...
>
> Early on in the development of the DB for a project we are working on, the
> decision was made to use physical deletion of records from the DB rather
> than logical deletion. This seemed to be working just fine until now.
>
> We have added entity history functionality to our application (per the
> requirements) in which we use history tables in the DB to maintain change
> histories of many entities. These tables include foreign keys that
> reference the records in the original tables for which they are
> maintaining a history.
>
> Now, when attempting to physically delete an entity for which history
> records exist, we are obviously bumping up against referential integrity
> issues.
>
> Our options seem to be:
>
> 1. Stop enforcing referential integrity between history records and the
> records they reference.
> 2. Switch from physical deletion to logical deletion of records.
>
> I was wondering if anyone might have some advice/insight on which of these
> two options would be better. We tend to think that option 2 is the better
> way to go, but we are not yet sure of the implications of trying to make a
> change like this at this point in the development process.
>
> Any input would be highly apreciated!!!!
>
> Thanks.
>

This has been answer in microsoft.public.sqlserver.programming.

Please do not multi-post.

--
David Portas
SQL Server MVP
--

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация