The results of Hampton's cavalry activities against Sheridan were also mixed, but are usually seen in a more positive light than Sheridan's. He had succeeded in protecting the railroads and, indirectly, Richmond. He achieved tactical victories on the second day of Trevilian Station and against Gregg at Samaria Church, but failed to destroy the Union cavalry or its trains. In August, he was named commander of the Cavalry Corps of the Army of Northern Virginia, filling the position that had remained open since the death of J.E.B. Stuart.