SQL Server 触发器2

DDL 触发器:

  create trigger trigger_name 

  on all server | database

  with encryption | execute as[...]

  for create_table | create_index |......

  as

  ---------

  ---------

例子:

  create trigger trigger_for_login

  on all server

  for create_login

  as

    print '你不可以创建用户';

    rollback;

  go

 

posted on 2014-10-26 22:09  蒋乐兴的技术随笔  阅读(127)  评论(0编辑  收藏  举报

导航