Although the second half was an improvement for Graeme Souness' men, it was Mansfield who had the first chance when Given was forced to palm away Adam Rundle's volley.
The tie appeared to be beyond Rochdale but Rundle struck the ball beyond Logan from 18 yards to ensure a nervous finish for Stockport and a sense of drama until the final whistle.