DeMar DeRozan scored 27 points in a record-setting performance and the Sacramento Kings beat the Toronto Raptors 122-107 on Wednesday night.