DelJob: Sample for Deleting Jobs from SMS Database

Click to open or copy the files for the DelJob sample.

Click to open or copy the Common files (required).

Deljob.exe is a console mode application that can be used for deleting jobs from the SMS database. This code demonstrates data-source connection, folder deletion, scalar manipulation, and helper functions.

For more information, see Deljob.exe in the Microsoft SMS API.

Building SDK Samples

This sample uses the following keywords:

connecttodatasource; didrequesthelp; displaygreeting; displayhelp; displaysmserror; gets; getstatusname; inputstring; malloc; printf; smsclosecontainer; smsclosefolder; smscommitfolder; smsdatasourceconnect; smsdatasourcedisconnect; smsgetfoldercount; smsgetfolderid; smsgetnextfolder; smsopencontainer; smspopulate; smsunlinkfolder; sprintf; strcmp; usersaysyes