Here\'s a very simple question. I have an SP that inserts a row into a table and at the end there\'s the statement RETURN @@IDENTITY. What I can\'t seem to find is a way to
Sounds to me like you want to execute with a scalar value
SqlCommand.ExecuteScalar()
as others have mentioned I think using SCOPE_IDENTITY() is more secure than the @@IDENTITY variable