Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default value trigger do not fire with APPEND FROM
Message
 
To
16/03/1998 18:27:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00084929
Message ID:
00084933
Views:
20
>My table have a primary key: iKey
>
>This key is generated automatically by a call to NewID() in the "Default value" field.
>
>It does work well with APPEND and INSERT_SQL, but it does not work with APPEND FROM. The function NewID() is never called by APPEND FROM, leaving me with "The primary key is violated" message.
>
>Is there any work around for this problem or do I have to import the file in a temporary table (without a primary key) before importing it again in my table?
>
>TIA
Sylvain,

That is because you are probviding a value with append from. You cang et you default value to work if you APPEND FROM FIELDS ... and list all fields EXCEPT the primary key field.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform