Silicon oxide-based resistive switching devices show great potential for applications in nonvolatile random access memories. We expose a device to voltages above hard breakdown and show that hard oxide breakdown results in mixing of the SiO x layer and the TiN lower contact layers. We switch a similar device at sub-breakdown fields in situ in the transmission electron microscope (TEM) using a movable probe and study the diffusion mechanism that leads to resistance switching. By recording bright-field (BF) TEM movies while switching the device, we observe the creation of a filament that is correlated with a change in conductivity of the SiO x layer. We also examine a device prepared on a microfabricated chip and show that variations in electrostatic potential in the SiO x layer can be recorded using off-axis electron holography as the sample is switched in situ in the TEM. Taken together, the visualization of compositional changes in ex situ stressed samples and the simultaneous observation of BF TEM contrast variations, a conductivity increase, and a potential drop across the dielectric layer in in situ switched devices allow us to conclude that nucleation of the electroforming-switching process starts at the interface between the SiO x layer and the lower contact.