一个触发器的写法

VB_support 2002-10-23 05:01:29
要写一个触发器,固定在每天的夜里00:00执行
语句很简单 "delete table#",改怎么写,怎么运用
在线等待,成功就给分
谢谢!!!
...全文
34 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
奇遇 2002-10-23
  • 打赏
  • 举报
回复
The trigger must have a event operating the db object to trigger it, The timer is can not rise trigger, unless u add a job doing some act for db,then U can use the trigger to trigger your 'delete ...'
VB_support 2002-10-23
  • 打赏
  • 举报
回复
thsx to all
since i know how to create a job in enterprice manager
i am interesting in how to create a trigger,whether it
is nothing to do only user job?
CSDNM 2002-10-23
  • 打赏
  • 举报
回复
http://expert.csdn.net/Expert/FAQ/FAQ_Index.asp?id=137
奇遇 2002-10-23
  • 打赏
  • 举报
回复
I think u should create a job,not a trigger
U can get help form online help about use sp_add_job
also,u can do it in EM.

34,593

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧