• Awesome I added your script with SP and works fine.

    Just one concern about to use xp_cmdshell in production servers is good?