Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN Confused?
Message
From
06/06/2001 10:26:19
 
 
To
06/06/2001 09:49:08
Carol Dewar
Magram Computer Services Llc
Saugerties, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00515720
Message ID:
00515761
Views:
12
Carol --

The smallest unit of value in DATETIME() is the second. So, if it's possible to generate more than 1 record in a second, you'll have a duplicate primary key. A REPLACE WITH DATETIME() will most do that.

As others have mentioned, it's best to enhance or change your PK generation. There are various options available, and the best really depends on your particular needs. You may be able to convert the DATETIME to a string and pre or postpend a workstation ID. However, if you do batch updates from one station, or need to seed an initial value, the process cannot run faster than 1 record per second. It may be preferable to use a unique ID generation program such as Craig has available.

Jay
Previous
Reply
Map
View

Click here to load this message in the networking platform