dbTalk Databases Forums  

Re: a simpler way...?

comp.databases.paradox comp.databases.paradox


Discuss Re: a simpler way...? in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Al Breveleri
 
Posts: n/a

Default Re: a simpler way...? - 11-07-2008 , 01:57 PM







Hoo boy that one again.

This is a well known thorny problem, with difficulties in any database environment,
not just Paradox. Generating unique keys has been discussed many times on
this board.

See www.rdaworldwide.com and www.thedbcommunity.com for papers and resources
online. Dennis Santoro has a product that manages unique keys.

Getting cMax and incrementing is one of the worst methods known. It is very
slow and gets slower as the table grows, and it will not scale to multiple
users.

-Al.

Kenneth <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote:
Quote:
Howdy,

Using P9 with XP...

I need to have a field in an MRO number entries in sequence.
That is, the first entry gets a "1" and the second gets a
"2" etc.

I don't want to use a autoincrement type because the field
is part of a key.

I could run a query, get a cMax, and increment by one, but
is there a simpler way to do the deed?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."


Reply With Quote
  #2  
Old   
Al Breveleri
 
Posts: n/a

Default Re: a simpler way...? - 11-07-2008 , 01:57 PM







Hoo boy that one again.

This is a well known thorny problem, with difficulties in any database environment,
not just Paradox. Generating unique keys has been discussed many times on
this board.

See www.rdaworldwide.com and www.thedbcommunity.com for papers and resources
online. Dennis Santoro has a product that manages unique keys.

Getting cMax and incrementing is one of the worst methods known. It is very
slow and gets slower as the table grows, and it will not scale to multiple
users.

-Al.

Kenneth <usenet (AT) soleSPAMLESSassociates (DOT) com> wrote:
Quote:
Howdy,

Using P9 with XP...

I need to have a field in an MRO number entries in sequence.
That is, the first entry gets a "1" and the second gets a
"2" etc.

I don't want to use a autoincrement type because the field
is part of a key.

I could run a query, get a cMax, and increment by one, but
is there a simpler way to do the deed?

Many thanks,
--
Kenneth

If you email... Please remove the "SPAMLESS."


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.