If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
no relationships at database level
What do you all think about not setting up any
relationships at the database level, but instead setting up relationships in queries "on the fly" as needed? What are the pros / cons of that approach? Thanks for any input. |
#2
|
|||
|
|||
no relationships at database level
"Tim Zych" wrote in
: What are the pros / cons of that approach? Data integrity. Tim F |
#3
|
|||
|
|||
no relationships at database level
Cons:
- you won't be able enforce referential integrity - fields involved in relationships will not be automatically indexed - you won't be able to use cascading updates if you change the value of a primary key used in a relationship, so you risk losing the connection to all the related records (not that you should need to do this if you use a primary key that has no meaning to the user). - you won't be able to use cascading deletes, so you can delete a record on the one side of a join and create several orphan records on the many side - the forms and reports wizards won't work - when you realise that it is a problem you will have to spend hours cleaning up your data so that you can create the relationships that should have been there from the start Pros - you will have total freedom to create a useless mess "Tim Zych" wrote in message ... What do you all think about not setting up any relationships at the database level, but instead setting up relationships in queries "on the fly" as needed? What are the pros / cons of that approach? Thanks for any input. |
#4
|
|||
|
|||
no relationships at database level
Along the lines of what I suspected. Thanks for the input.
In case you are wondering, I am not approaching a database design this way. I am wondering about another database design I saw. -----Original Message----- Cons: - you won't be able enforce referential integrity - fields involved in relationships will not be automatically indexed - you won't be able to use cascading updates if you change the value of a primary key used in a relationship, so you risk losing the connection to all the related records (not that you should need to do this if you use a primary key that has no meaning to the user). - you won't be able to use cascading deletes, so you can delete a record on the one side of a join and create several orphan records on the many side - the forms and reports wizards won't work - when you realise that it is a problem you will have to spend hours cleaning up your data so that you can create the relationships that should have been there from the start Pros - you will have total freedom to create a useless mess "Tim Zych" wrote in message ... What do you all think about not setting up any relationships at the database level, but instead setting up relationships in queries "on the fly" as needed? What are the pros / cons of that approach? Thanks for any input. . |
Thread Tools | |
Display Modes | |
|
|