Re: Foreign key with SET NULL: possible?
From: Allen Browne (AllenBrowne_at_SeeSig.Invalid)
Date: 02/23/05
- Next message: Tony: "how to disable auto-save"
- Previous message: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- In reply to: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- Next in thread: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- Reply: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Feb 2005 20:37:24 +0800
ADOX is very buggy and inconsistent, but I have that code working in ADOX
2.8 on JET 4.0.8618.0.
I agree that it is not a good idea to use cascade-to-null, especially since
the interface cannot show this kind and so anyone who must maintain the
database in the future has no visual clue that this kind of relation is in
use. If it were propertly implemented it might be a useful concept though.
Examples:
- Delete a category and all the related records become uncategorized but you
don't lose them.
- Delete a client, and all their invoices become "cash" i.e. the f.k.
ClientID is null because the client is now unknown.
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Jamie Collins" <jamiecollins@xsmail.com> wrote in message news:1109161801.844372.225620@z14g2000cwz.googlegroups.com... > Allen Browne wrote: >> JET 4 does support cascade-to-null. > > Thanks Allen. I can get it to work for ON DELETE (both DDL and ADOX) > but not for ON UPDATE i.e. > > .UpdateRule = adRISetNull ' (ON UPDATE SET NULL) > > returns an error. > > On reflection, ON UPDATE SET NULL would not be very useful anyhow. Not > that I'm thinking of using ON DELETE SET NULL any time soon, either > <g>. I'm just trying to establish what Jet does support so that my app > can support the same features. > > Thanks again, > Jamie.
- Next message: Tony: "how to disable auto-save"
- Previous message: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- In reply to: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- Next in thread: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- Reply: Jamie Collins: "Re: Foreign key with SET NULL: possible?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|