CommandShellImmediate Method (SQL-DMO)

The CommandShellImmediate method executes an operating system command on the server running Microsoft® SQL Server™.

Applies To

SQLServer Object

Syntax

object.CommandShellImmediate( Command )

Part Description
object Expression that evaluates to an object in the Applies To list
Command String specifying an operating system command

Remarks

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.

Prototype (C/C++)

HRESULT CommandShellImmediate(
SQLDMO_LPCSTR Command);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.