Thanks guys, I already found the solution here:
http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/thread/cf0b0fb5-2681-4036-8bb3-e5e0c68a1ff8
Someone mentioned removing PRINTs from the stored procedure and that turned out to be the problem.