Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating Primary key during APPEND FROM
Message
From
08/06/1998 10:27:17
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
08/06/1998 09:46:32
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00105751
Message ID:
00105795
Views:
36
Myron,

Sorry for the confusion, I am attempting to APPEND from a text file into a table in a database. The id field in the table has a default value set from a function. When APPENDing SDF, the DEFAULT method is not firing, even if I use the FIELDS clause. I know I can append the information into a temp table without the id field and then append from the temp table into the "real" table, but I didn't want to go through the hassle. Any other suggestions???

Rex

>It will fire as long as you exclude the primarykey from the source
>file. You could use the Fields option of the Append function and
>not list the key field.
>-myron kirby-
>==============================================
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform