Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return unique identifier
Message
 
 
To
06/09/2005 10:47:06
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01047020
Message ID:
01047028
Views:
8
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform