The CommandShellImmediate method executes an operating system command on the server running Microsoft® SQL Server™.
object.CommandShellImmediate( Command )
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
Command | String specifying an operating system command |
SQL Server implements secure access to the operating system through a number of security mechanisms. For more information about configuring access to the operating system, see xp_cmdshell.
HRESULT CommandShellImmediate(
SQLDMO_LPCSTR Command);