Execute an Operating System Command From Within SQL Server.
The xp_cmdshell extended store procedure makes it possible to execute operating system commands from within SQL Server.
Example:
EXEC Master..xp_cmdshell ‘Dir c:\’
Explore posts in the same categories: SQL Interview Questions