Set NoCount Automatically

  • Hi,

    I always use SET NOCOUNT ON statement in all my sprocs to improve performance (as stated in the BOL). By Default, the NOCOUNT is set to OFF, I'm just wondering if there is a way to predefine NOCOUNT ON as the default, so that I don't have to worry if someone forgot to put that directive when writing a sproc. Is this possible?

    Thanks for any help

    Hendry

  • There is.

    Server Properties > Connections > Check No Count.

    This sets it for all DB's on that server/instance.

    Crispin

    Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply