Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
@@Identity with cascading inserts
Message
From
29/11/2001 14:43:07
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
@@Identity with cascading inserts
Miscellaneous
Thread ID:
00587676
Message ID:
00587676
Views:
58
SQL7/VFP7

Front End (VFP) inserts a record in SQL table A and then pulls @@Identity to put pkey back in front-end cursor and for use in related child cursor fkeys. Table A though, has insert trigger that inserts multuiple rows into several other tables, thus @@Identity returns incorrect value for Table A record.

Question: Is there any call that will return the identity field value of the first (or main) inserted into table vs. the cacaded ones, or am I left with a different front end approach?

thanks,
Ken B. Matson
GCom2 Solutions
Next
Reply
Map
View

Click here to load this message in the networking platform