Skip to content

NHibernate and SQL Server user option NOCOUNT #2935

@zdenotirc

Description

@zdenotirc

SQL Server has configuration called "default user options" and one of the config is NOCOUNT. If NOCOUNT is set ON, NHibernate doesn't work as this setting affects all users connections to all databases on single server instance.

It looks like 'SET NOCOUNT OFF' is required for NHibernate to work correctly, so I would expect some config for NHibernate Connection to make sure NHibernate works as expected.

user options
https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/configure-the-user-options-server-configuration-option?view=sql-server-ver15

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions