Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return unique identifier
Message
 
 
À
06/09/2005 10:47:06
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01047020
Message ID:
01047028
Vues:
7
You can use SCOPE_IDENTITY() system function to get the value of the IDENTITY column after insert. I'm not sure how you can return it back to VB.NET but I'm using stored procedure OUTPUT parameter to do the same when it's called from VFP.

>I have a table that store records that have an auto incrementing field called Counter. In my VB.NET app I am triggering a stored procedure to insert a record into this table, but I would also like to somehow get the Counter value back to my app. Any advice on how to do this?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform