Can you copy and paste the Sproc code that actually got deployed to your server. You can get to it through SQL Management Studio (they will be under the Programmability folder of your deployed database.) I'd like to see if something weird got put into the autogenerated code.