SQL Server NOCOUNT option

Daniel August 24, 2014

Why is it necesssary to toggle this option at all? It's an instance option, not a database option - so it affects all other databases in the same instance, too.

This can lead to undesired side-effects.

Is there a way to specify this via a JDBC driver connection url property to avoid a change for the whole sql server instance?

2 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2014

No, it's not possible to set it in the JDBC driver - MS-SQL doesn't support it being set other than in the internal options, so the JDBC driver can't do anything about it.

0 votes
Alexey_Rjeutski__Polontech_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2014

This setting can affect atlassian apps, see https://confluence.atlassian.com/display/JIRA/Error+caused+by+SET+NOCOUNT+in+MS+SQL+Server for the examples of problems.

Suggest an answer

Log in or Sign up to answer