Viewing 15 posts - 1 through 15 (of 19 total)
You are doing the job of the DB Engine in the worst possible way (using fake pointers identifiers). Why stop there? Why not use text files for storage and write...
July 10, 2009 at 9:07 am
I have clarified what I mean by pointer-based foreign keys on the SQL feedback page
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=472957
It is not the network model and it completely eliminates the use of a...
July 10, 2009 at 7:55 am
GSquared (7/9/2009)
Any primary key that relies on human names is inherently flawed.
It was an example.
Also, primary key values should be non-volatile. Actually, they shouldn't change at all once assigned....
July 9, 2009 at 7:17 am
To demonstrate how stupid a surrogate key is:
CREATE TABLE members
(
mem_id INT IDENTITY(1,1) NOT NULL,
mem_username VARCHAR(25)
mem_firstname VARCHAR(25),
...
July 9, 2009 at 5:14 am
Carl Federl (7/8/2009)
Regarding the natural key versus surrogate key argument, take a closer look at the "natural" keys and they all have something in common - they are actually surrogate...
July 9, 2009 at 4:41 am
Matt Miller (7/8/2009)
July 8, 2009 at 4:37 pm
Here is what Celko has to say about using surrogates:
There is no such magical, universal. Elixir of Life "id"; this
Kabbalah magic where all of God's creations have a number and...
July 8, 2009 at 10:17 am
The fact is that because of a poor implementation, we resort to using "hacks". Surrogates instead of natural keys. There is too much maintenance work involved in having 3-4 candidate...
July 8, 2009 at 9:00 am
GSquared (7/8/2009)
July 8, 2009 at 7:50 am
The benefits of a natural key is that it can be validated externally, debugged easily, doesn't require extra joins in some cases, free index etc. Surrogates do not belong in...
July 7, 2009 at 10:07 am
Lynn Pettis (7/7/2009)
sqlguru (7/7/2009)
Lynn Pettis (7/7/2009)
This is called the Network Model (CODASYL).
Actually, it's not.
The DB automatically creates the foreign keys between the two tables BUT it is not seen...
July 7, 2009 at 9:45 am
GSquared (7/7/2009)
Have to say that they strike me as "nice to have", not as crucial. I'd rate the first one as "nicer to have" than the...
July 7, 2009 at 9:23 am
Lynn Pettis (7/7/2009)
This is called the Network Model (CODASYL).
Actually, it's not.
The DB automatically creates the foreign keys between the two tables BUT it is not seen by the DBA,...
July 7, 2009 at 9:02 am
The sad thing is that this feature (one of the most crucial features regarding referential integrity) has been requested way back in sql 2000. SQL Server is also missing subqueries...
June 24, 2009 at 12:32 pm
Well, in a "true" relational model, there is no need to do a @@IDENTITY or SCOPE_IDENTITY(), therefore it is not reliable at all. Surrogate identifiers are not valid keys, it...
June 24, 2009 at 11:52 am
Viewing 15 posts - 1 through 15 (of 19 total)