MILWAUKEE -- Forward Carmelo Anthony scored 29 points as the Knicks held off the Bucks 107-101 in the second overtime on Wednesday night at BMO Harris Bradley Center.
Anthony went 9-for-29 from the field (31 percent) but finished with four 3-pointers, one of which gave New York a 104-98 lead with 50 seconds remaining in the final overtime.
He was one of four players to score in double digits for the Knicks, who shot 37.6 percent (38 of 101) and attempted 41 3-pointers (making 17) as they earned their second victory in the last three games.
Reserve point guard Beno Udrih, moved into the starting lineup because of injuries to Raymond Felton and Pablo Prigioni, scored 21 points on 8-of-12 shooting and hit five 3-pointers against his former team.
Shooting guard J.R. Smith finished with 19 points (5 of 17 on 3-pointers) and forward Andrea Bargnani added 12 for New York.
Back-to-back 3-pointers by Smith and Bargnani gave the Knicks an 87-83 lead with 1:23 left in regulation.
Point guard Brandon Knight missed a chance to get Milwaukee within a point when he missed a field goal that would have converted a three-point play. He scored a career-high 36 points but only seven after the third quarter.
After the Knicks came up empty on their next possession, forward Ersan Ilyasova drew a foul from center Tyson Chandler and hit both shots with 31.5 seconds left.
The Knicks again failed to convert as Udrih couldn't connect, giving Milwaukee a final chance with 19.2 seconds left. But forwards John Henson and Khris Middleton missed shots, forcing overtime.
Udrih gave the Knicks a 94-92 lead midway through the extra period, but neither team scored again until Henson's tip-in tied the game with 0.3 seconds left.
Anthony's chance at a buzzer-beater bounced off the rim, sending the game to a second overtime.
Henson and Middleton each finished with 20 points and Ilyasova scored 11.
Rookie guard Giannis Antetokounmpo finished with 10 points and seven rebounds in his first career start.
NOTES: C Tyson Chandler returned to the Knicks' lineup for the first time since suffering a fractured fibula Nov. 5, keeping him out of 20 games. New York was without F Amar'e Stoudemire, who did not make the trip to Milwaukee in order to rest what coach Mike Woodson described as a swollen knee, and C Kenyon Martin, who is expected to miss the next two weeks with a sore abdominal muscle. ... Bucks G/F Giannis Antetokounmpo was in the starting lineup for the first time Wednesday, opening the game at shooting guard with usual starter O.J. Mayo attending his grandmother's funeral and reserve Gary Neal out with a foot injury. The No. 15 overall pick in the 2013 draft averaged 6.0 points, 3.9 rebounds and 1.0 assists through his first 19 NBA games. "To me, he's proven he's ready to play at this level," Bucks coach Larry Drew said. "He has certainly done some really good things coming off the bench."