I'm backing up from SQL Server 2005 32bit and I'm restoring to SQL Server 2008 R2 64 bit.
I have not attempted to restore all 24 database but of the 6 I restored it fails every other Database same scripting methodology.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/