We have fabricated Si(1-x)Ge(x) alloy nanowire devices with Ni and Ni/Au electrodes. The electrical transport characteristics of the alloy nanowires depended strongly on the annealing temperature and contact metals. Ni/Au-contacted devices annealed at 400 degrees C showed p-type transistor behavior as well as a resistance switching effect, while no switching was observed from Ni-contacted alloy nanowire devices. To identify the origin of such a hysteretic resistance switching effect, we constructed nanowire devices on a 40 nm Si(3)N(4) membrane. Transmission electron microscopy analysis combined with electrical transport measurements revealed that devices contacted with Ni/Au, and thereby showing resistance switching, have Au atoms right next to the alloy nanowire.