San Francisco 49ers legend Joe Montana connected with team owner Eddie DeBartolo for the winning score as the Niners rallied to beat Dan Marino and the All-Stars 45-40 in Candlestick Park's final game.