I want to know if you SET NOCOUNT ON in a stored procedure or view, do you have to SET NOCOUNT OFF later in the stored procedure? Or is it optional? Just SET NOCOUNT ON at beginning, perform SQL task, then end it. Which is correct?
at the begining of a procedure. This means that messages telling how many rows that were affected by a delete/insert/update query will not be sent. There is no need to set nocount off and I don't see any connection to views.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.