use master GO /* --开启sql server代理 sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'Agent XPs', 1; GO RECONFIGURE GO */ --定义创建作业 DECLARE @jobid uniqueidentifier, @jobname sysname SET @jobname = N'testInterval' IF EXISTS(SELECT