Sql server 2012-触发日期后触发 [英] Sql server 2012-triggers after date expaired

查看:87
本文介绍了Sql server 2012-触发日期后触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个表已经验证了日期和状态是可用的..我可以使用今日激活日期的触发器营地,日期低于今天日期,状态将更新不可用。如此情况下写入触发器



我尝试过的事情:



im直到现在才试过。即时搜索此查询

one table has experied date and status is Available.. can i use trigger campare that expaired date with today and the date is below today date and status will update unavailable.how to write trigger like this case

What I have tried:

i m not tried till now. im searching this query

推荐答案

您可以尝试使用SQL代理执行定期运行的工作来执行这些操作



SQL Server代理 [ ^ ]
You could try using the SQL Agent to do a job that runs periodically to do these things

SQL Server Agent[^]


这篇关于Sql server 2012-触发日期后触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆