Hi,
This is probably an easy question for you experts out there:
After an insert, I know that Scope_Identity() will return the identity of the record just inserted. But how do I pass that back from a stored procedure being called from .NET? In .Net, I'm using the command object's ExecuteNonQuery method to run the stored procedure. I need to know the identity of the record created right after I make the call to the command object's ExecuteNonQuery method.
Thank you!
This is probably an easy question for you experts out there:
After an insert, I know that Scope_Identity() will return the identity of the record just inserted. But how do I pass that back from a stored procedure being called from .NET? In .Net, I'm using the command object's ExecuteNonQuery method to run the stored procedure. I need to know the identity of the record created right after I make the call to the command object's ExecuteNonQuery method.
Thank you!