>The first thought, that comes to mind without even running this script, is to expand the values, e.g. instead of varchar(128) use, say, varchar(400).
Thanks, this works.
The structure of how SQL Server interprets all this has changed from SQL Server 2008 to SQL Server 2005. So, by using 400 instead of 128, it supports the old version as well.