Two New Brunswick men have been handed prison terms after a violent home invasion in Upper Rexton last year.

Police say 26-year-old Alexander Peters of Elsipogtog and 28-year-old Nicholas Francis Ward, originally of Red Bank, forced their way into an Upper Rexton home on March 16, 2012.

The pair stabbed a 36-year-old man and assaulted a 43-year-old woman and a 13-year-old girl before robbing them of prescription pills and money.

Peters and Ward appeared in Moncton provincial court Monday for sentencing.

Ward was sentenced to seven years in jail for assault, aggravated assault, robbery with violence and being unlawfully at large from a federal institution at the time of the offences. 

Peters received a nine-year sentence for the incident on March 16, another violent robbery at the same home two months earlier, and for assault causing bodily harm on an inmate at the Southeast Regional Correctional Centre in Shediac on November 29, 2012.

Both men have been prohibited from owning firearms for a period of 10 years, and will be required to have their DNA added to a national databank.