• Thanks for the script.

    Months ago I was looking for a scritp like this one with an additional feature: recursively delete old files in the selected folder an sub-folders.

    I suppose it is difficault to deal with sub-folders at any level using T-SQL and finally I use an external exe program written in C# (deleteold.exe from codeproject).

    Anyway, I would prefere this functionality in T-SQL 😉

    Regards