Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating Primary key during APPEND FROM
Message
From
09/06/1998 07:38:06
Rex Mahel
Realm Software, Llc
Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00105751
Message ID:
00106227
Views:
28
Sorry for the confusion, I am attempting to add record to a table in a DBC from a text file and generating a unique key in the DEFAULT property of the field. What I am getting is the DEFAULT property is not triggering and then a primary key violation with the second record append.

Any ideas???

Rex

>>Is there a way, using the DBC methods, of generating unique keys for records appended from another file? I am placing a unique key procedure in the DEFAULT method of a field, but it is not being triggered in the APPEND FROM statement.
>>
>>TIA
>>
>>Rex
>
>
> How about using INSERT INTO, in a loop? I haven't tried it but since it's adding a single record at a time your triggers should fire.
Previous
Reply
Map
View

Click here to load this message in the networking platform