Re: problem using identity column as primary key
From: Louis Davidson (dr_dontspamme_sql_at_hotmail.com)
Date: 02/25/04
- Next message: hngo01: "Re: execute SP at same time??"
- Previous message: Louis Davidson: "Re: problem using identity column as primary key"
- In reply to: J. M. De Moor: "Re: problem using identity column as primary key"
- Next in thread: --CELKO--: "Re: problem using identity column as primary key"
- Reply: --CELKO--: "Re: problem using identity column as primary key"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Feb 2004 08:58:51 -0600
It is, but it makes for interesting situations with cascading that goes
large numbers of tables. My rule is that every piece of data is modifiable
in only one place, and that change will be reflected in only one place in
the system. I also like the fact that if I change a key structure the
change only effects my database code in one place (and the UI in only one
location if proper OO techniques are used).
I certainly do not think there is anything wrong with using natural keys for
primary keys, but I don't think there is anything wrong with using
artificial values as surrogate keys either, as long as they are backed up by
natural keys.
-- ---------------------------------------------------------------------------- ----------- Louis Davidson (drsql@hotmail.com) Compass Technology Management Pro SQL Server 2000 Database Design http://www.apress.com/book/bookDisplay.html?bID=266 Note: Please reply to the newsgroups only unless you are interested in consulting services. All other replies will be ignored :) "J. M. De Moor" <nospam@spamlessobjectpac.com> wrote in message news:erJSxwz%23DHA.2552@TK2MSFTNGP09.phx.gbl... > Petrik > > > > > One problem with natural keys that hasn't come up in this discussion > > is the fact that it is very difficult to find a natual key that is > > quaranteed not to change. > > That's why some put ON UPDATE CASCADE in their DDL, right? > > Joe De Moor > >
- Next message: hngo01: "Re: execute SP at same time??"
- Previous message: Louis Davidson: "Re: problem using identity column as primary key"
- In reply to: J. M. De Moor: "Re: problem using identity column as primary key"
- Next in thread: --CELKO--: "Re: problem using identity column as primary key"
- Reply: --CELKO--: "Re: problem using identity column as primary key"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|