View Single Post
  #2 (permalink)  
Old March 27th, 2006, 10:24 PM
Thearon's Avatar
Thearon Thearon is offline
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

You'll need to have an Output parameter in your stored procedures to return an Integer data type containing the Identity value. Then you'll need to set the SQLCommand object with an output parameter. After you execute your stored procedure, you'll want to query the output parameter value in the Parameters collection of the SQLCommand object.

Thearon
Reply With Quote