A Santa Rosa man was sentenced to five years in prison following his eighth conviction on driving under the influence.

Barton Riley Shafer, 34, will also be unable to get a driver's license for 10 years after his release from prison, Sonoma County District Attorney Jill Ravitch said in a statement.

Shafer was stopped May 17 for speeding and was found to have a blood alcohol level of 0.17. The legal limit is .08.

In August he pleaded no contest to to driving while under the influence of alcohol and driving in a suspended license.

He also admitted having been convicted of three previous felony DUI charges in the last 10 years and having served prison time twice on those counts.

He has been in custody since May and was sentenced on Thursday.