× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Use an identity field and big integer and that's your primary key. The whole
thing is now managed by the OS and you don't need to worry about it.

On Fri, Nov 19, 2010 at 8:24 AM, <dieter.bender@xxxxxxxxxxxx> wrote:

... normaly I would prefer to generate the Ids by my own, identity columns
are looking to me like coming thru the backdoor. Writing a column to the
database and looking afterwards, what I have written...

Dieter

--------------------------------------------------
From: "Richard Schoen" <richard@xxxxxxxxxxxxxxx>
Sent: Friday, November 19, 2010 3:41 PM
To: <midrange-l@xxxxxxxxxxxx>
Subject: Re: time/date as key fields

A combination of _GENUUID, Verns timestamp routine and job info would
most
likely guarantee uniqueness :-)

Otherwise an Identity field in the database indeed guarantees it.

Curiousity question:

How many of you are using Identity fields in databases for new
applications ?

In the past we always created the base key such as Customer Number, Order
Number and that was the primary key. Now I think the wisdom is to
always
use an identity field for primary key as well as Customer Number, Order
Number, etc.... as indexes.

Would like to hear thoughts ?.....

Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT


------------------------------

message: 9
date: Fri, 19 Nov 2010 15:07:43 +0100
from: <dieter.bender@xxxxxxxxxxxx>
subject: Re: time/date as key fields

... it depends, maybe for referential constraints, if there are database
relations.
BTW: genUUID on AS/400 is only most likely unique!!! Best choice would be
an
identity column, if uniqueness is needed.

D*B


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.