对的
1 中建好了包,然后右键调度包,会自动创建一个作业2 包和作业是不同的概念,作业只是用来调度包的执行,当然也可以完成其他工作,比如执行sql语句,调用过程等等EXEC sp_add_job @job_name = 'test'
EXEC sp_add_jobstep @job_name = 'test',
   @step_name = 'test_1',
   @subsystem = 'TSQL',
   @command = 'update yourtable set yourcol=0', /*这是你每次想执行的东西*/
   @retry_attempts = 5,
   @retry_interval = 5
EXEC sp_add_jobschedule @job_name = 'test', 
   @name = 'Schedule_test',
   @freq_type = 16, -- daily
   @freq_interval = 26,
   @active_start_time = 10000sp_add_jobschedule    
@job_id  =  @JobID,    
@name  =  N'ff',    
@enabled  =  1,    
@freq_type  =  4,  --每天  
@active_start_date  =  20021212,  --开始日期  
@active_start_time  =  0,  --开始时刻  
@freq_interval  =  1,  --子周期  
@freq_subday_type  =  8,  --单位是小时  
@freq_subday_interval  =  10,  --10小时  
@freq_relative_interval  =  0,    
@freq_recurrence_factor  =  0,    
@active_end_date  =  99991231,  
@active_end_time  =  235959EXEC sp_add_job @job_name = '作业名字'
EXEC sp_add_jobstep @job_name = '作业名字',
   @step_name = '步骤名子',
   @subsystem = 'TSQL',
   @command = 'EXEC master..xp_cmdshell ''c:\你的exe文件''', 
   @retry_attempts = 5, --重试次数
   @retry_interval = 5  --重试间隔EXEC sp_add_jobschedule @job_name = '作业名字', 
   @name = '作业调度名字',
   @freq_type = 4, -- 每天
   @freq_interval = 26, --间隔
   @active_start_time = 10000 --开始时间