Unix Technical Forum

SQL Server Identity Field

This is a discussion on SQL Server Identity Field within the SQL Server forums, part of the Microsoft SQL Server category; --> >> I have an identity field [sic] on a table in SQL Server ... If I remove a record ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 05:07 AM
--CELKO--
 
Posts: n/a
Default SQL Server Identity Field

>> I have an identity field [sic] on a table in SQL Server ... If I
remove a record [sic] from this table, the identity sequence is
broken. <<

Your problem is that you still think in terms of files, records, and
fields and do not understand an RDBMS model of the world. A real SQL
programmer does not use IDENTITY for a host of reasons. What you are
doing in SQL is mimicking a sequence magnetic tape file, circa 1950.

Get a book and learn the basics before you write any more code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 05:09 AM
Kevin Haugen
 
Posts: n/a
Default Re: SQL Server Identity Field

You know Joe, I've had it with your crap. I'm learning SQL myself, and for
the most part I try to use real world solutions and try to stick to the
model as close as possible (I even wrote my first UDF today, thanks to the
BOL and some helpful people on the web). A lot of other people in this
list are learning as well. If you want to contribute something useful, then
by all means do so, otherwise SHUT THE FUCK UP!. I don't believe you were
born with the God like knowledge of SQL you would have us believe you
possess. You had to go through the same learning curve as the rest of us.

I used to respect you, in that the articles you have written have proved
helpful to me in the past. From now on, I plan on avoiding you like the
plague.

Kevin


"--CELKO--" <jcelko212@earthlink.net> wrote in message
news:18c7b3c2.0409011450.10fd20fd@posting.google.c om...
> >> I have an identity field [sic] on a table in SQL Server ... If I

> remove a record [sic] from this table, the identity sequence is
> broken. <<
>
> Your problem is that you still think in terms of files, records, and
> fields and do not understand an RDBMS model of the world. A real SQL
> programmer does not use IDENTITY for a host of reasons. What you are
> doing in SQL is mimicking a sequence magnetic tape file, circa 1950.
>
> Get a book and learn the basics before you write any more code.
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 05:09 AM
Joe Celko
 
Posts: n/a
Default Re: SQL Server Identity Field

>> If you want to contribute something useful, then
by all means do so, otherwise SHUT THE FUCK UP!.<<

I did, but you don't know it yet.

>> I don't believe you were born with the God like knowledge of SQL you

would have us believe you possess. <<

Just believe that I have the books and articles that you can Google.

>> You had to go through the same learning curve as the rest of us. <<


NO, I had to go thru **much worse** learning curves. There were no SQL
books when I started and the relational model was brand new and
misunderstood. Why do you think I had to write some?

Kevin, do not learn by climbing that same learning curve; start by
standing on the shoulders of those who went before you. Pick up good
progtamming habits now instead of writing bad code for 5 or 10 years as
some of kind weird learning experience.

In particular, you are confusing the parking space with the VIN number
when you want to track automobiles. Google some of my rants on IDENTITY
and mimicking sequential files in 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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com