Ham is the thigh and rump of pork from the haunch of a pig or boar.
When Colonel Jack O'Neill visited Colonel Frank Simmons, Simmons was eating a ham sandwich. (SG1: "Desperate Measures")
When Dr. Rodney McKay was affected by the Second Childhood parasite and taken to the Shrine of Talus, his 'last meal' included Ham. (SGA: "The Shrine")