A Calhoun County man has been sentenced to 25 years in prison for attacking a woman with a pocketknife and broken bottles during a robbery.