A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

no relationships at database level



 
 
Thread Tools Display Modes
  #1  
Old May 17th, 2004, 05:34 PM
Tim Zych
external usenet poster
 
Posts: n/a
Default 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  
Old May 17th, 2004, 09:02 PM
Tim Ferguson
external usenet poster
 
Posts: n/a
Default no relationships at database level

"Tim Zych" wrote in
:


What are the pros / cons of that approach?



Data integrity.


Tim F

  #3  
Old May 17th, 2004, 09:06 PM
Andrew Smith
external usenet poster
 
Posts: n/a
Default 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  
Old May 17th, 2004, 09:24 PM
Tim Zych
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.