Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tastrade newid way
Message
 
To
17/11/1997 11:07:58
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00060679
Message ID:
00061318
Views:
28
>I am using the tastrade newid function. I want to copy data from one table to another table. In the new table, I need to assign surrogated key to each record. I tried using both APPEND FROM ARRAY or INSERT FROM ARRAY and the newid didn't seem to work. Am I correct? I know I can use SCAN+INSERT but is there a better way?
>
>Thanks in advance.

If NewID() is available (by placing it in the stored procedures of your DBC) and you have NewId() as default value for your primary key field, all should be fine. You can even try this interactively.

José
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform