A Schenectady man received a sentence of over 25 years in prison for trafficking fentanyl, cocaine, and heroin to the Capital Region.