Re: Traversing large data table
From: Louis Davidson (dr_dontspamme_sql_at_hotmail.com)
Date: 11/03/04
- Next message: johndoe_at_driver.net: "Re: sp_helpsrvrolemember"
- Previous message: Mike Hoff: "Re: Combine 2 tables into single resultset"
- In reply to: Joe Celko: "Re: Traversing large data table"
- Next in thread: Anith Sen: "Re: Traversing large data table"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 23:57:46 -0600
> a quote from Dr. Codd: "..Database users may cause the system to
> generate or delete a surrogate, but they have no control over its value,
> nor is its value ever displayed to them ..."(Dr. Codd in ACM TODS, pp
> Sounds pretty clear to me. What part of "no control over" and "nor ever
> displayed" did I miss?
Ok, I think I understand what we are talking about here. I have always
considered "nor ever displayed" to be a logical thing, not a physical thing.
As in they could be seen by administrators, but not by users. I see that
this could be, and probably is more correct to be, never displayed in that
it is completely inaccessible.
I will just ignore the obvious evils of pointer math in a set based
language, since none of us is going to disput that.
Reseeding them is bad, but based on the original laws, things like DBCC
shouldn't need to exist, but because of the realities of hardware and
software failures, we have to have tools to work on the physical level
occasionally. There is seldom a need to reseed an identity anymore, but it
does happen occasionally.
-- ---------------------------------------------------------------------------- Louis Davidson - drsql@hotmail.com SQL Server MVP Compass Technology Management - www.compass.net 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 may be ignored :) "Joe Celko" <jcelko212@earthlink.net> wrote in message news:ey5a9jSwEHA.3844@TK2MSFTNGP09.phx.gbl... > a quote from Dr. Codd: "..Database users may cause the system to > generate or delete a surrogate, but they have no control over its value, > nor is its value ever displayed to them ..."(Dr. Codd in ACM TODS, pp > 409-410) and Codd, E. (1979), Extending the database relational model to > capture more meaning. ACM Transactions on Database Systems, 4(4). pp. > 397-434. > > Sounds pretty clear to me. What part of "no control over" and "nor ever > displayed" did I miss? > > To me this means that a surrogate ought to act like an index; created by > the user, managed by the system and NEVER seen by a user. For example, > Sybase SQL Anywhere does a nice job of building pointer chains to > co-ordinate PK-FK relationships and cascade their DRI actions, but you > do not get to do pointer arithmetic, re-seed them or anything else like > you do in T-SQL. > > --CELKO-- > Please post DDL, so that people do not have to guess what the keys, > constraints, Declarative Referential Integrity, datatypes, etc. in your > schema are. Sample data is also a good idea, along with clear > specifications. > > > *** Sent via Developersdex http://www.developersdex.com *** > Don't just participate in USENET...get rewarded for it!
- Next message: johndoe_at_driver.net: "Re: sp_helpsrvrolemember"
- Previous message: Mike Hoff: "Re: Combine 2 tables into single resultset"
- In reply to: Joe Celko: "Re: Traversing large data table"
- Next in thread: Anith Sen: "Re: Traversing large data table"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|