Globally Set NOCOUNT ON for Azure SQL RRS feed

  • Question

  • HI team, 

    We are trying to set NOCOUNT to ON globally on Azure SQL, we saw a similar option for SQL Server on prem but not for Azure SQL. Is it possible to do that in Azure SQL

    In the T-SQL Docs, it doesn't say how to set it globally

    Please suggest. 

    Rishi Kapoor

    Friday, October 11, 2019 3:22 PM

All replies

  • we saw a similar option for SQL Server on prem

    Can you post a link?

    SET NOCOUNT is a statement per batch or procedure body to stop sending row count messages to the client.

    Friday, October 11, 2019 3:33 PM
  • Hi 

    The SET NOCOUNT ON has a scope for current user only. It can be set globally using user options. But not in Azure SQL. 

    After checking it looks like you are following the below doc:


    If you see this document is not valid for Azure SQL. Also it is never recommended to set any value at global level and you should try to incorporate this in your queries.

    Hope this helps.

    Navtej S

    Monday, October 14, 2019 9:34 PM
  • I was fully aware of this, thus I asked to OP to post a link were he has seen this.

    btw, use the "Open link in new window" option. I never understood, why this is not the default or even mandatory..

    Tuesday, October 15, 2019 9:59 AM
  • Hi Rishi 

    Do you need any other help in this regard. Please get back to us if needed.

    Navtej S

    Thursday, October 17, 2019 3:11 PM