Put the transmission in gear, 3rd or higher is best to reduce gear tooth stress, then hold the output sprocket with vice grips. Don't let the vise grips or whatever you hold the sprocket with put too much pressure on the case around the sprocket, it would be possible to crack it.