SAN FRANCISCO -- Aaron Rowand tripled leading off the seventh and scored the go-ahead run moments later on a wild pitch, and the San Francisco Giants beat the Los Angeles Dodgers 5-4 on Tuesday night.