Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The easy way to form a primary key
Message
From
11/08/2001 02:44:43
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00541152
Message ID:
00542616
Views:
25
I Nadya

I think there is another issue;

1)Craig's method is great except it requires to read a data file for the last key. In a large network environment this can become slow as each user needs to access the file for their keys.

2)If the application is running in a data capture heavy environment this creates additional network traffic.

3)The fact that its in a file creates the danger of what can happen to the file in respect of corruption, loss, or tampering?

In my example (and there are other variations of it) it creates no network traffic, no danger of corruption, and tampering can only be done by changing the exe itself. The entire key is generated locally. And as mentioned you can reduce total key size in a variety of ways.

I believe that the code for getting the hard disk serial number is available under the download section of UT. It uses 3 functions all in Win32API. They are GetDriveType, GetLogicalDrives, GetVolumeInformation.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform