Middlesex bravely held out over the final day and final hours to claim a draw against Nottinghamshire after being outplayed for the first three days.
Nick Compton and Adam Voges brought up differing half centuries in what was a battle to survive, while Nick Gubbins contributed 37.
James Harris was the hero at the end as he batted for more than a session to help his side reach stumps.
Middlesex have been behind the eight ball ever since the opening day when Brendan Taylor struck a superb 106 on his Nottinghamshire debut as they posted an above-par score of 298.
It went from bad to worse as Dawid Malan broke his hand after dropping a catch offered by Will Gidman.
The home side promptly collapsed to 107-5 and rustled up 181 all out before Chris Read and James Taylor took the game away from Middlesex, setting them an impossible 519 to win with Sam Robson falling for a duck on the third evening.
Nick Compton and Nick Gubbins set out to try and save the game on the final morning, making it nearly through to lunch before the latter was caught at short leg before the interval.
Harry Gurney turned proceedings Nottinghamshire's way with two wickets in two balls as Riki Wessels caught Compton at slip for a fine 85 that lasted 217 balls and a shade over four hours before Paul Stirling fell the next ball, caught by Samit Patel at second with Middlesex on 174-4.
Adam Voges was batting with calmness and brought up his half century off 66 balls, while John Simpson batted out time to score 11 in just over an hour, facing 48 balls.
Voges was the key and Gurney beat his defences on 73 from 101 balls to leave Middlesex six down and when Tom Helm departed five overs later it was advantage Notts.
Harris kept things simple and took his side into the final 10 overs of the match as the visitors crowded the wicket with 10 of the 11 players inside what would be the 30 yard circle in a limited overs contest.
As the balls remaining ticked down, Nottinghamshire grew more and more frustrated as Tim Murtagh and Harris dug in with Vernon Philander and Gurney desperately trying to rustle one wicket.
Malan would have batted if needed but the duo plodded on and they shook hands at 6pm. Murtagh was unbeaten on 18 from 54 balls, while Harris was on an impressive 36 from 120 balls with Middlesex finishing on 300-7.