• I ran the script in a SQL 2005 instance and got the following error:

    Msg 245, Level 16, State 1, Line 19

    Conversion failed when converting the varchar value 'how old the file is in days' to data type int.

    Thanks,

    Phil