Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@@Identity with cascading inserts
Message
De
29/11/2001 14:43:07
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
@@Identity with cascading inserts
Divers
Thread ID:
00587676
Message ID:
00587676
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform