Just jumping in this thread because Victor's link isn't working...
WHILE @@fetch_status = 0
Courtesy of Gabe Sumner's blogpost on Sitefinity and deploying to shared hosting providers
. He runs into the same problem and explains how to drop the double tables as well.
On a side note with regards to Gabe's post, with the 'Export data' feature in SQL Management Studio, you have the option to 'remap' [sf_...] to [dbo] in the process so you won't need to constantly alter it with the script....