:!!
Run a command through the client operating system shell.
Syntax at a glance
:!! command
Work example
Identify shell steps in reviewed scripts
In a disposable session, use a benign echo command to see which output belongs to the client machine. Review every shell line before running a script.
Check your work The shell message appears without a SQL result. Check the client command restrictions before running shared scripts.
Open Microsoft Learn for full syntax, permissions, and details for your version.