You should watch:

Stargate SG-1: Season 5 Episode 16: Last Stand

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