SQLServer Object
Executes an operating system command. Output from the command is returned in a QueryResults object.
QueryResults = SQLServer.CommandShellWithResults ( [Command :=] strCommand )
HRESULT pSQLServer->CommandShellWithResults (
SQLOLE_LPCSTR strCommand,
LPSQLOLEQUERYRESULTS* ppQueryResults );
Element | Type | Description |
---|
QueryResults | QueryResults | Returned QueryResults object |
strCommand | String | Operating system command |
The contents of the QueryResults object depend on the operating system command.
xp_cmdshell