Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Determine SQL ID
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01092510
Message ID:
01092517
Views:
15
>If I have a header and line item table, and I want to insert a record into both,
>after the SQLEXEC command, how do I know the primary key of the header record to
>use in the detail record?

If you're refering to an IDENTITY column, check SCOPE_IDENTITY, and @@IDENTITY in BOL.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform