dbTalk Databases Forums  

question on relationships

comp.databases.ms-access comp.databases.ms-access


Discuss question on relationships in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sparks
 
Posts: n/a

Default question on relationships - 08-04-2011 , 02:21 PM






We have a database that was split and has a backend on the server.
I asked why there were no relationships in it.
they said that it was not needed because the form to subforms were set
up with it.

Should the backend have relationships set up just like it was before
it was backended?

Reply With Quote
  #2  
Old   
Bob Quintal
 
Posts: n/a

Default Re: question on relationships - 08-04-2011 , 06:25 PM






sparks <sparks (AT) home (DOT) com> wrote in
news:g6sl37l8bqph4h0klhispivhdghg9aer3a (AT) 4ax (DOT) com:

Quote:
We have a database that was split and has a backend on the server.
I asked why there were no relationships in it.
they said that it was not needed because the form to subforms were
set up with it.

Should the backend have relationships set up just like it was
before it was backended?
The back end needs relationships if there are constraints imposed, such
as referential integrity, cascading updates, cascading deletes, etc.
There also may be performance improvements in letting the back end
relationships do some of the filtering and grouping.

--
Bob Q.
PA is y I've altered my address.

Reply With Quote
  #3  
Old   
sparks
 
Posts: n/a

Default Re: question on relationships - 08-05-2011 , 06:29 AM



thank you.
this was a big help


On Thu, 04 Aug 2011 23:25:49 GMT, Bob Quintal <rquintal (AT) sPAmpatico (DOT) ca>
wrote:

Quote:
sparks <sparks (AT) home (DOT) com> wrote in
news:g6sl37l8bqph4h0klhispivhdghg9aer3a (AT) 4ax (DOT) com:

We have a database that was split and has a backend on the server.
I asked why there were no relationships in it.
they said that it was not needed because the form to subforms were
set up with it.

Should the backend have relationships set up just like it was
before it was backended?

The back end needs relationships if there are constraints imposed, such
as referential integrity, cascading updates, cascading deletes, etc.
There also may be performance improvements in letting the back end
relationships do some of the filtering and grouping.

Reply With Quote
  #4  
Old   
David-W-Fenton
 
Posts: n/a

Default Re: question on relationships - 08-05-2011 , 02:43 PM



sparks <sparks (AT) home (DOT) com> wrote in
news:g6sl37l8bqph4h0klhispivhdghg9aer3a (AT) 4ax (DOT) com:

Quote:
We have a database that was split and has a backend on the server.
I asked why there were no relationships in it.
they said that it was not needed because the form to subforms were
set up with it.

Should the backend have relationships set up just like it was
before it was backended?
If there are no actual relationships between the entities modelled
in the tables, then, no, there don't need to be any relationships
defined in the back end (that's the only place that matters --
relationships in the front end don't do anything).

But if, say, you have an invoice and invoice detail tables, you MUST
have a relationship defined. Exactly how you define it is up to you
(with or without CASCADE DELETE, for instance), but in the real
world, an invoice detail can't exist without a parent invoice, so
you shouldn't allow that in your invoice detail table.

Relationships of this sort should NEVER be left to the application
level, because they are not part of the application, but part of the
logical structure of the data itself. The data itself should stand
by itself and maintain its own integrity, rather than depending on
an application to maintain its integrity and consistency. Always do
RI at the engine level when it's possible (and some pretty
widely-used databases DON'T support it, i.e., MySQL with standard
MyISAM tables).

--
David W. Fenton http://www.dfenton.com/
contact via website only http://www.dfenton.com/DFA/

Reply With Quote
  #5  
Old   
Tony Toews
 
Posts: n/a

Default Re: question on relationships - 08-06-2011 , 03:54 PM



On Thu, 04 Aug 2011 14:21:20 -0500, sparks <sparks (AT) home (DOT) com> wrote:

Quote:
We have a database that was split and has a backend on the server.
I asked why there were no relationships in it.
they said that it was not needed because the form to subforms were set
up with it.
They have not a clue about databases.

Quote:
Should the backend have relationships set up just like it was before
it was backended?
Absolutely yes.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.