ExecuteNonQuery () returns the number of rows affected.
SqlCommand command = new SqlCommand(queryString, connection);
command.Connection.Open();
int rowsAffected = command.ExecuteNonQuery();
If you need multiple records, that is, the total number of records deleted, inserted, updated, etc. You will need to use the parameter OUTPUT.
command.Parameters.Add("@DeletedRecords", SqlDbType.Int);
command.Parameters["@DeletedRecords"].Direction = ParameterDirection.Output;
Then in a transactional stored procedure:
CREATE PROCEDURE [dbo].[TransactionReportStatus]
@DeletedRecords INT OUTPUT
AS
BEGIN
SET @DeletedRecords = @@ROWCOUNT
END
@@ROWCOUNT SQL Server ExecuteNonQuery()