SQL Server T-SQL stored procedure triggers

Source: Internet
Author: User

One, stored procedures

A stored procedure is a set of T-SQL statements that are compiled in a single execution plan

Stored procedures: Like functions are saved in the database (programmability)

Advantages of stored procedures:

1. Allow modular programming

2. Allow for faster execution if an operation requires a large number of T-SQL code or needs to be repeated, the stored procedure will be faster than the T-SQL batch code execution. It is parsed and optimized when the stored procedure is created, and you can use the in-memory version of the procedure after the first execution of the procedure.

3. Reduce network traffic

4. An operation that requires hundreds of lines of T-SQL code can be implemented by a separate statement that executes the procedure code without the need to send hundreds of lines of code in the network.

5. Use as a security mechanism

Write

SQL Server T-SQL stored procedure triggers

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.