SCCM WebService API Reference

SCCMWebService..::..ExecuteSQLCommand Method

Executes a SQL command.

Namespace:  SCCMWebService
Assembly:  SCCMWebService (in SCCMWebService.dll)

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool ExecuteSQLCommand(
	string SQLCommand,
	DatabaseConnections databaseConnection,
	string SecurityKey
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function ExecuteSQLCommand ( _
	SQLCommand As String, _
	databaseConnection As DatabaseConnections, _
	SecurityKey As String _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ ExecuteSQLCommand(
	String^ SQLCommand, 
	DatabaseConnections^ databaseConnection, 
	String^ SecurityKey
)

Parameters

SQLCommand
Type: String
The SQL command.
databaseConnection
Type: SCCMWebService.DataObjects..::..DatabaseConnections
The database connection.
SecurityKey
Type: String
The security key.

Return Value

True if succeeded, otherwise false.

Exceptions


ExceptionCondition
ExceptionInvalid security key.