Updated

Al Jefferson scored 34 points, including a game-winning layup at the buzzer, and the Utah Jazz rallied from a 14-point deficit to beat Toronto 96-94 on Wednesday, extending their winning streak over the Raptors to 12 games.

C.J. Miles and Devin Harris each scored 23 points for Utah, which has not lost to the Raptors since a 98-86 defeat in Toronto on Dec. 22, 2004.

DeMar DeRozan scored 17 points and Sonny Weems had 16 as Toronto lost for the fifth time in six games.

Jose Calderon scored 14 points and Ed Davis had 12 for the Raptors.

The Jazz, who had lost nine of 11 entering the game, trailed 86-72 with 8:21 to play before turning it around behind 10 fourth quarter points from Miles, including back-to-back 3-pointers.

A jump shot by Weems put the Raptors up by 14 before consecutive baskets from Miles sparked the Utah comeback.

After a basket from Leandro Barbosa, consecutive 3-pointers from Earl Watson and Harris trimmed it to 88-82 with 5:00 remaining.

Weems made a pair of free throws but Miles hit 3s on back-to-back trips, cutting it to 90-88 with 3:25 to play.

DeRozan made one of two from the line but a driving layup from Harris and a rebound and layup by Jefferson gave Utah a 92-91 lead. After Calderon missed a 3, Jefferson hit a turnaround jumper, putting the Jazz up 94-91 with a minute to play.

Barbosa's 3 tied it with 43 seconds left, but Jefferson won it with a buzzer-beating layup.

The Jazz started walking off the floor in celebration before the referees called them back to review the play. The basket was ruled good and the game was over.

Paul Millsap (left knee) and Andrei Kirilenko (back), who both left Monday's loss at New York, did not start for Utah. Rookie Jeremy Evans made his first career start in place of Millsap, with Miles taking Kirilenko's spot.

The injury-ravaged Jazz were also without Francisco Elson (left knee), Mehmet Okur (back) and Ronnie Price (right foot).

Kyrylo Fesenko, who had missed four of the previous six games with a sore back, returned to Utah's lineup.

Toronto was without leading scorer Andrea Bargnani, who was away from the team with flulike symptoms. Davis started in Bargnani's place.

Toronto's Reggie Evans, who had 11 rebounds, returned to the lineup for the first time since suffering a broken bone in his right foot in a Nov. 26 loss at Boston.

Toronto lost Amir Johnson to a sprained left ankle midway through the first quarter when he landed on Utah's Derrick Favors and fell to the ground in pain. Johnson was evaluated at the half, but did not return.

Miles scored 11 points in the first and Jefferson added 10 as the Jazz overcame an early seven-point deficit to lead 31-26 after 12 minutes.

Toronto took the lead with a 17-7 run to start the second before Utah recovered, with the Jazz holding a narrow 52-50 lead at the half. DeRozan and Weems each scored seven points in the second for the Raptors.

The Jazz missed 10 of 11 shots over the final five minutes of the third, with Toronto using a 14-2 run over that span to take a 78-70 lead into the fourth.

Notes: Jefferson had eight rebounds. ... Utah F Marcus Cousins, who signed a 10-day contract Tuesday, made his Jazz debut but didn't even have a name stitched on the back of his jersey. ... Raptors C Alexis Ajinca (right knee) did not play. ... Toronto assigned C Solomon Alabi to Erie of the D-League. ... The Raptors, in their 16th season, had never faced a Jazz team coached by anyone other than Jerry Sloan.