On November 24, 2007, Sobotka played in his first NHL game in a 2-1 loss to the New York Islanders. On February 13, 2008, Sobotka was able to score his first NHL goal and the game-winning goal against Ty Conklin of the Pittsburgh Penguins in a 2-1 win. On June 26, 2010, Sobotka was traded to the St. Louis Blues for the rights to Boston University defenseman David Warsofsky.