Hi all,
I am attempting to create a simple internal messaging system and have come up with the following schema. My problem is how to handle the cascading deletes that take place within the system. An example of this would be when a user is deleted and I would want to then delete everything associated with that user. Am I best adding cascade updates and deletes to some relationships and then triggers for the others? Therefore adding a cascade delete to the aspnet_Users MsgFolders and then on the MsgMessages folder add a Delete trigger to then delete the related MsgRecipient record? Maybe my schema design is not quite correct?
Any help on this would be much appreciated.
Thanks
Cragly
Start Free Trial