SQL Server Tigger

Source: Internet
Author: User

Really helpless obviously a lot of things clearly I just write a website let me go to the database don't say refueling

Create statement

1     UseTig2    GO3    Create Trigger [Trigger Name]  on [Table name]4    [Trigger Conditions]( for Insert/ for Update/AfterInsert/AftertUpdate)5     as6    Print 'Output'

Example

1     Use Tig 2    GO 3    Create Trigger  on A 4    Insert 5     as 6    Print ' Insert A '

Check all the trigger

1    Select *  from where xtype='TR'

Query the specified trigger

1     exec [trigger name ]

Delete the specified trigger

1     Drop Trigger [trigger name ]

SQL Server Tigger

Related Article

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.