Sam Saunders' late goal helped Brentford to victory at Rochdale.
Gary Alexander gave the visitors the advantage from the penalty spot after Clayton Donaldson had been bundled over by defender Stephen Jordan in the area.
Dale went in search of an equaliser and came close through Dean Holden's overhead kick, before levelling through a Marcus Holness header.
But the Bees came back and found the winner when Saunders latched onto the end of Mike Grella's flick-on to score.
VIEWS FROM THE DRESSING ROOM
Rochdale manager Steve Eyre told BBC Radio Manchester:
"I'm not too disappointed with how we've played, but there is room for improvement.
"They played on the counter-attack quite quickly and they went away with three points, so if that was their game plan, well done.
"I thought we were well worthy of our equaliser and at that point I thought we would go on and push on to win it."
Brentford manager Uwe Rosler told BBC London 94.9:
"Its the second time we're in Manchester and the second win so I'm over the moon.
"We did our homework today and that's paid off for us.
"Shaleum Logan is a real warrior. He got the green light from the medical staff to play and he put in an outstanding performance."
Live Text Commentary
Full Time The game is over, as the referee blows his whistle.90:00 +4:37
Unfair challenge on Jean-Louis Akpa Akpro by Shaleum Logan results in a free kick. David Lucas restarts play with the free kick.90:00 +3:11
The referee blows for offside against Gary Alexander. David Lucas restarts play with the free kick.82:48
Indirect free kick taken by Richard Lee.82:48 Substitution
Substitution Andrew Tutte on for Nicky Adams.82:48
The offside flag is raised against David Ball.82:05
Mike Grella takes a shot. Marcus Holness gets a block in.80:09 Substitution
Substitution Harlee Dean on for Sam Saunders.79:31
Sam Saunders takes a shot. Save by David Lucas.78:29 Substitution
Substitution Jean-Louis Akpa Akpro is brought on as a substitute for Harry Bunn.77:20
Gary Alexander provided the assist for the goal.77:20 Goal scored
Goal! - Sam Saunders - Rochdale 1 - 2 Brentford Goal scored by Sam Saunders from close range to the bottom right corner of the goal. Rochdale 1-2 Brentford.76:28
David Ball is caught offside. Indirect free kick taken by Richard Lee.74:08
Gary Alexander challenges Stephen Jordan unfairly and gives away a free kick. David Lucas restarts play with the free kick.72:45
The referee blows for offside. David Lucas takes the free kick.70:30
The referee penalises Gary Alexander for handball. Marcus Holness takes the free kick.69:08 Substitution
Substitution Mike Grella replaces Clayton Donaldson.69:08 Substitution
Substitution Myles Weston on for Niall McGinn.68:53
Harry Bunn takes a shot. Save by Richard Lee.67:03
The ball is delivered by Sam Saunders.
Shaleum Logan has an effort at goal from outside the area which misses left.65:09
Free kick awarded for a foul by David Ball on Marcel Eger. Marcel Eger takes the direct free kick.64:07
Brian Barry-Murphy provided the assist for the goal.64:07 Goal scored
Goal! - Marcus Holness - Rochdale 1 - 1 Brentford Marcus Holness grabs a headed goal from inside the penalty box. Rochdale 1-1 Brentford.63:27
Corner taken by Brian Barry-Murphy from the left by-line,62:07
Foul by Stephen Jordan on Clayton Donaldson, free kick awarded. Direct free kick taken by Craig Woodman.61:16
Free kick awarded for a foul by Jonathan Douglas on Nicky Adams. Free kick taken by Jason Kennedy.59:06
Jason Kennedy gives away a free kick for an unfair challenge on Jonathan Douglas. Leon Legge restarts play with the free kick.55:35 Substitution
Substitution Roland Bergkamp leaves the field to be replaced by David Ball.54:37
Corner taken by Sam Saunders, Marcel Eger takes a shot.53:55
Clayton Donaldson takes a shot. Blocked by Stephen Jordan.50:09
Sam Saunders takes a shot. Save by David Lucas.49:05
Roland Bergkamp gives away a free kick for an unfair challenge on Jonathan Douglas. Richard Lee takes the direct free kick.48:44
Shaleum Logan crosses the ball, David Lucas makes a save.47:55
Gary Jones has an effort at goal from just outside the penalty box which goes wide of the left-hand post.47:15
Craig Woodman concedes a free kick for a foul on Harry Bunn. Marcus Holness takes the direct free kick.45:20
Unfair challenge on Nicky Adams by Jonathan Douglas results in a free kick. Direct free kick taken by Brian Barry-Murphy.45:01
The second half has started.45:00 +2:00 Half time
Half Time The players leave the pitch at half time.45:00 +0:18
The official flags Nicky Adams offside. Free kick taken by Richard Lee.44:00
Richard Lee restarts play with the free kick.44:00 Booking
Booking Roland Bergkamp goes into the referee's book for unsporting behaviour.42:55
Outswinging corner taken left-footed by Nicky Adams from the left by-line. Free kick awarded for an unfair challenge on Leon Legge by Roland Bergkamp.42:19
Craig Woodman concedes a free kick for a foul on Harry Bunn. Brian Barry-Murphy takes the free kick.41:47
The assistant referee signals for offside against Gary Alexander. Free kick taken by David Lucas.41:20
Sam Saunders sends in a cross.39:45
Sam Saunders produces a right-footed shot from just outside the box that goes wide right of the target.38:40
Free kick awarded for a foul by Roland Bergkamp on Niall McGinn. Direct free kick taken by Leon Legge.35:50
Ashley Grimes takes a shot. Corner taken by Brian Barry-Murphy. Gary Jones takes a shot. Jonathan Douglas gets a block in.34:23
Unfair challenge on Harry Bunn by Jonathan Douglas results in a free kick. Brian Barry-Murphy restarts play with the free kick.33:55
Gary Alexander takes a shot. Save by David Lucas.29:36
Nicky Adams takes the inswinging corner, clearance made by Clayton Donaldson.27:58
Nicky Adams takes a shot. Craig Woodman manages to make a clearance.25:08
Nicky Adams has shot on goal from just outside the area which goes wide of the right-hand upright.22:41
Brian Barry-Murphy restarts play with the free kick. Shot from deep inside the area by Dean Holden clears the crossbar.22:41 Booking
Booking Gary Alexander booked.22:10
Unfair challenge on Dean Holden by Gary Alexander results in a free kick.20:35
Sam Saunders takes the direct free kick. Corner taken right-footed by Sam Saunders to the near post, Jason Kennedy makes a clearance.20:35 Booking
Booking The referee cautions Stephen Jordan for unsporting behaviour.20:11
Foul by Stephen Jordan on Gary Alexander, free kick awarded.19:32
Free kick awarded for an unfair challenge on Marcel Eger by Roland Bergkamp. Richard Lee restarts play with the free kick.17:09
A cross is delivered by Sam Saunders.15:36
Craig Woodman takes the direct free kick.15:36 Booking
Booking Dean Holden goes into the referee's book.15:29
Dean Holden challenges Sam Saunders unfairly and gives away a free kick.13:56
Corner taken left-footed by Brian Barry-Murphy from the left by-line, Jason Kennedy takes a shot.12:50
Nicky Adams has an effort at goal from outside the box which misses left.11:53
Corner taken left-footed by Brian Barry-Murphy from the right by-line, Gary Alexander manages to make a clearance.10:49 Goal scored
Goal! - Gary Alexander - Rochdale 0 - 1 Brentford Gary Alexander scores a power penalty. Rochdale 0-1 Brentford.10:00
Foul by Stephen Jordan on Clayton Donaldson, Penalty awarded.9:32
Unfair challenge on Leon Legge by Roland Bergkamp results in a free kick. Free kick taken by Richard Lee.7:58
Header from deep inside the penalty area by Leon Legge goes harmlessly over the crossbar.7:19
Free kick awarded for an unfair challenge on Gary Alexander by Dean Holden. Direct free kick taken by Craig Woodman.6:23
Jonathan Douglas takes a shot. Blocked by Gary Jones. Free kick awarded for an unfair challenge on Ashley Grimes by Marcel Eger. Direct free kick taken by Marcus Holness.5:43
Clayton Donaldson takes a shot. Save by David Lucas. Outswinging corner taken by Sam Saunders.4:52
Nicky Adams takes a shot. Save by Richard Lee.4:16
Nicky Adams takes a shot. Save by Richard Lee.3:25
A cross is delivered by Niall McGinn, David Lucas makes a save.1:55
Sam Saunders takes a inswinging corner from the left by-line played to the near post. The ball is crossed by Sam Saunders, save by David Lucas.1:30
The referee blows for offside. Leon Legge takes the free kick.0:00
The referee gets the match started.
Live data and text provided by our data suppliers