• It is worth noting that the solution provided requires you enable xp_cmdshell, which is disabled by Microsoft by default when you install SQL Server and for good reason. Enabling it opens up a can of worms when it comes to maintaining a high-level of security and auditability in your database instance. Do some research into the feature before enabling it and as always make sure you understand code before running it in your environment.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato