How to create a scheduled job in SQL server 2008 via T-SQL?

前端 未结 2 1382
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 23:20

I want to create a job which deletes records from a database after a period of time has passed. For example I have a field in news table Time Stamp and each month a

2条回答
  •  醉酒成梦
    2021-02-05 23:41

    You will need to create a SQL Agent Job to schedule a job to periodically run. If you want to create the job with T-SQL, refer to How to: Create a SQL Server Agent Job (Transact-SQL).

提交回复
热议问题