create table with identity column..
then in stored procedure create output parameter
at the end of stored procedure
assign output parameter to scope_identity()
ex:set @id=scope_identity()
return id
it returns the identity value.
in c#.net use the executescalar command object.
No comments:
Post a Comment