I would also ask what method are you using to verify the database was restored?
Example: deleting a table within the database, execute your script, see if the table is put back.
Shawn Melton
Twitter: @wsmelton
Blog: wsmelton.github.com
Github: wsmelton