A state judge has sentenced a New Haven man to four months in jail for stabbing his dog 29 times and told him he can't possess pets after he's released. The dog survived.