CommandShellImmediate Method

SQLServer Object

Description

Executes an operating system command. Output from the command is not returned.

Visual Basic

SQLServer.CommandShell ( [Command :=] strCommand )

C++

HRESULT pSQLServer->CommandShell ( SQLOLE_LPCSTR
strCommand );

Elements

Element Type Description

strCommand String Operating system command

Reference

xp_cmdshell