当前位置:Gxlcms > mysql > SqlServer2012使用作业设置定时任务

SqlServer2012使用作业设置定时任务

时间:2021-07-01 10:21:17 帮助过:80人阅读

1.新建一张测试表 USE [Job_Test] GO /****** Object: Table [dbo].[Table_Job] Script Date: 2013/3/22 15:38:08 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[Table_Job]( [ID] [uniqueidentifi

1.新建一张测试表

USE [Job_Test]
GO

/****** Object: Table [dbo].[Table_Job] Script Date: 2013/3/22 15:38:08 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Table_Job](
[ID] [uniqueidentifier] NOT NULL,
[Name] [varchar](256) NULL,
CONSTRAINT [PK_Table_Job] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

2.启动作业服务代理

2.右键新建作业

.

4.填写作业步骤,免备案空间,填写相应的Sql

.

5.填写作业计划

6.检查作业运行是否有效

,网站空间,美国服务器

人气教程排行