Answered by:
Database SET NOCOUNT option.

Question
-
Hello, is there a way at the DB level to set a particular user database' SET NOCOUNT option to OFF?
Thanks in advance.
Tuesday, February 28, 2017 10:59 PM
Answers
-
No. SET NOCOUNT is a TSQL option to suppress return count message when running queries. It is not a database-level option or setting.
Unless SET NOCOUNT is explicitly set to ON within the query, all queries will return a row count message, along with result set.
HTH,
Phil Streiff, MCDBA, MCITP, MCSA
- Edited by philfactor Tuesday, February 28, 2017 11:16 PM
- Proposed as answer by Olaf HelperMVP Wednesday, March 1, 2017 5:41 AM
- Marked as answer by techresearch7777777 Wednesday, March 1, 2017 6:07 PM
Tuesday, February 28, 2017 11:12 PM
All replies
-
No. SET NOCOUNT is a TSQL option to suppress return count message when running queries. It is not a database-level option or setting.
Unless SET NOCOUNT is explicitly set to ON within the query, all queries will return a row count message, along with result set.
HTH,
Phil Streiff, MCDBA, MCITP, MCSA
- Edited by philfactor Tuesday, February 28, 2017 11:16 PM
- Proposed as answer by Olaf HelperMVP Wednesday, March 1, 2017 5:41 AM
- Marked as answer by techresearch7777777 Wednesday, March 1, 2017 6:07 PM
Tuesday, February 28, 2017 11:12 PM -
Hi, not afaik at a database level.
You can although set it to off at the instance level i.e. EXEC sp_configure 'user options', 512;
- Proposed as answer by philfactor Tuesday, February 28, 2017 11:44 PM
Tuesday, February 28, 2017 11:13 PM -
Nice trick, Kevin! I wasn't aware of that one.
Thanks,
Phil Streiff, MCDBA, MCITP, MCSA
Tuesday, February 28, 2017 11:19 PM