You should watch:

Stargate SG-1: Season 3 Episode 14: Foothold

Perhaps you might want to check out The Order of Watching Stargate