SQL triggers-how to see which triggers are in the current database

Source: Internet
Author: User

Run in Query Analyzer:

Use database name
Go
Select * from sysobjects where xtype=' TR '

sysobjects holds the object of the database, where the record xtype as TR is the trigger object. We can see the name of the trigger in the Name column.

  • SQL triggers-Create a simple trigger
  • SQL triggers-rename triggers
  • SQL triggers-delete triggers
  • SQL triggers-triggers more syntax
  • SQL triggers-How to view the contents of a trigger
  • SQL triggers-Multiple triggers
  • SQL triggers-recursive, nested triggers
  • SQL triggers-trigger rollback
  • SQL triggers-use triggers with caution
  • SQL Triggers-table replication and triggers
  • SQL triggers-Create a trigger on a view
  • SQL triggers-Disabling and enabling triggers
  • SQL triggers-does cascading deleted records trigger triggers?
  • SQL triggers-inserted, deleted virtual tables
  • SQL triggers-trigger trigger sequence when cascading deletes

SQL triggers-how to see which triggers are in the current database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.