Unable to upgrade a database with a . in it's name

Hi,

I've just tried updating a database from 9.2.9.10497 to 10.3.0.5640.

My database had a . in it's name (e.g. TestUpgrade.10) when I ran the upgrade script I got errors and a lot of (0 row(s) affected) messages than the normal patch messages:

Changing the databases name to remove the . and rerunning the script fixes the problem and the upgrade runs as normal:

Obviously not a common case, but had me scratching my head for a while!

Thanks,
Rhys