You're right, the table is unsorted in the SQL 2K EM (either your example
or my actual table), though I'm sure it used to come up sorted previously.
It's not like I open that particular table directly all that often, so
perhaps it was conicidence or some such.
But regardless of that, as I said, what else was I to do here? I wanted
to take every possible precaution to ensure that in most possible sorts
and/or views of the data, somebody would notice the line that said to
contact me before adding to the data, so I wanted to include even the
identity in that. It's no guarantee, I'll grant, but it's better than
trusting that anyone who ever accesses my data will ignore that column as
much as I normally would. As you say, nobody SHOULD assign any importance
to an Identity column...but that doesn't mean that nobody WILL.
And as to that, I have never assigned any more importance to Identity
columns than anybody else ever has. I've been a DBA for about 15 years
now (not all of it SQL Server, mind you), so believe me, I know my way
around. It sucks that I would have a desire to ever take this kind of
measure, but it should tell you how often I've had to do it before that I
had to ask how to do it (and even then, the first response was not an
ideal solution).
But now you've got me thinking...perhaps my approach to this was wrong.
Since I'm the only one who will ever add data to the table, perhaps I
should add a trigger to the table that effectively forbids anybody not
named Robert Morley from doing so (not even the server admins). An admin
could still remove the trigger in the event that I get hit by a bus (even
though I work from home), but only someone bent on adding data to the
table would actually be able to do so, and would likely contact me unless
there was a REALLY good reason not to. Hmmm...something to look into.
Rob