SetNoCountOn_PHP tutorial for writing a stored procedure

Source: Internet
Author: User
Use SetNoCountOn when writing a stored procedure. By default, the stored procedure returns the number of rows affected by each statement in the process. If you do not need to use this information in the application (most applications do not need to use SET NOCOUNT ON
By default, the stored procedure returns the number of rows affected by each statement in the process. If you do not need to use this information in an application (not required by most applications), use the set nocount on statement in the stored procedure to terminate this action. Based on the number of statements that affect the row contained in the stored procedure, this will delete one or more round-trips between the client and the server. Although this is not a big problem, it can negatively affect the performance of high-traffic applications.
Create procedure test_MyStoredProc @ param1 int
As
Set nocount on


When set nocount on by default, the stored procedure returns the number of rows affected by each statement in the process. If you do not need to use this information in the application (most applications do not need this information...

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.