Re: Relationships. Does anyone use them?
- From: Tom van Stiphout <no.spam.tom7744@xxxxxxx>
- Date: Sat, 29 Apr 2006 09:00:56 -0700
On Fri, 28 Apr 2006 22:09:54 GMT, salad <oil@xxxxxxxxxxx> wrote:
For a long time I have had a bet going: show me any database of a
serious size that has been used for a serious amount of time, without
RI, and I will show you orphaned data.
I have not yet had to pay up.
Why tie one hand behind your back and not use the greatest asset of a
DBMS?
Might as well define all fields as varchar(255) and convert data types
yourself. Or enforce unique indexes or required fields in code rather
than have the DBMS do it for you. Ahh, a Notepad database!
-Tom.
I'm curious about your opinion on setting relationships.
When I designed my first app in Access I'd go to Tools/Relationships and
set the relationships. Over time I'd go into the window and see
relationship spaghetti....tables/queries all overthe place with lots of
relationship lines between here and there.
After that first app I didn't do relationships. If I had a query, I
defined the relationship. Many of the times when I create a new query
and add 2 tables together it creates the correct relationship between
the two tables. I believe this is due to using a foreign key with the
same name. I cared not about cascading deletes or cascading updates or
the type of relationship so the relationships window is clean of tables.
And if I need to, I'll create a query on the fly via code. Again, I set
the relationships. I know these queries aren't compiled for optimacy
like a querydef but operate well.
My apps don't appear to suffer from no relationships. Speeds very
acceptable, the results the same. So is setting relationships just more
overhead in creating an app and unnecessary...or do you believe the app
should have all relationships defined?
.
- Follow-Ups:
- Re: Relationships. Does anyone use them?
- From: salad
- Re: Relationships. Does anyone use them?
- From: Randy Harris
- Re: Relationships. Does anyone use them?
- References:
- Relationships. Does anyone use them?
- From: salad
- Relationships. Does anyone use them?
- Prev by Date: Re: Relationships. Does anyone use them?
- Next by Date: Re: Relationships. Does anyone use them?
- Previous by thread: Re: Relationships. Does anyone use them?
- Next by thread: Re: Relationships. Does anyone use them?
- Index(es):
Relevant Pages
|