This sample code can be used to create SQL Agent jobby using SQL Server Management Objects ( SMO ) http://msdn.microsoft.com/en-us/library/ms162169.aspx. Youcan use this code sample Managed C++ application as a reference to create asimple SQL Agent T-SQL job that runs on a one-